@font-face {
    font-family: 'Nian';
    src: url('../../../css/fonts/Nian-Black.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nian';
    src: url('../../../css/fonts/Nian-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nian';
    src: url('../../../css/fonts/Nian-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nian';
    src: url('../../../css/fonts/Nian-Semi-Bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.user-auth-body {
    font-family: 'Nian', Tahoma, Arial, sans-serif;
    font-weight: 600;
    background: linear-gradient(145deg, #110a1f 0%, #1a0f2e 35%, #231338 65%, #0d0620 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
}

.user-auth-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(246, 201, 69, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 90%, rgba(246, 201, 69, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.user-auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.user-auth-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.045) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.user-auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.user-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.user-auth-logo img {
    height: 48px;
    width: auto;
}

.user-auth-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 6px;
}

.user-auth-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.user-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.user-auth-alert i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 16px;
}

.user-auth-alert-error {
    background: rgba(255, 107, 129, 0.12);
    border: 1px solid rgba(255, 107, 129, 0.3);
    color: #ffb3c0;
}

.user-auth-alert-success {
    background: rgba(57, 217, 138, 0.12);
    border: 1px solid rgba(57, 217, 138, 0.3);
    color: #8ae6b5;
}

.user-auth-alert-info {
    background: rgba(78, 154, 255, 0.12);
    border: 1px solid rgba(78, 154, 255, 0.3);
    color: #99c9ff;
}

.user-auth-alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffd93e;
}

.user-auth-field {
    margin-bottom: 20px;
}

.user-auth-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.user-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    direction: rtl;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.user-auth-input-wrap:focus-within {
    border-color: rgba(246, 201, 69, 0.42);
    background: rgba(255, 255, 255, 0.095);
    box-shadow: 0 0 0 4px rgba(246, 201, 69, 0.1);
}

.user-auth-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    border-radius: 0 16px 16px 0;
}

.user-auth-input {
    flex: 1;
    min-height: 54px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    text-align: right;
}

.user-auth-input-wrap .user-auth-input:last-child {
    border-radius: 16px 0 0 16px;
}

.user-auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.user-auth-input:-webkit-autofill,
.user-auth-input:-webkit-autofill:hover,
.user-auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(26, 15, 46, 0.95) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.user-auth-pw-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.2s;
    border-radius: 16px 0 0 16px;
}

.user-auth-pw-toggle:hover {
    color: rgba(255, 255, 255, 0.6);
}

.user-auth-btn {
    width: 100%;
    min-height: 54px;
    padding: 14px 24px;
    margin-top: 8px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f6c945 0%, #ffd95c 100%);
    color: #2b1848;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 28px rgba(246, 201, 69, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.user-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(246, 201, 69, 0.28);
}

.user-auth-btn:active {
    transform: translateY(0);
}

.user-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.user-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-auth-footer a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.user-auth-footer a:hover {
    color: #f6c945;
}

.user-auth-footer-text {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    margin-top: 6px;
}

.user-auth-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.user-auth-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-auth-link:hover {
    color: #f6c945;
}

.user-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.user-auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f6c945;
    cursor: pointer;
}

.user-auth-checkbox a {
    color: #f6c945;
    text-decoration: none;
}

.user-auth-checkbox a:hover {
    text-decoration: underline;
}

.user-auth-info-box {
    background: rgba(78, 154, 255, 0.08);
    border: 1px solid rgba(78, 154, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

.user-auth-info-box strong {
    color: #fff;
}

.phone-inline {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    white-space: nowrap;
    margin: 0 4px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .user-auth-card {
        padding: 28px 20px 24px;
        border-radius: 24px;
    }

    .user-auth-title {
        font-size: 18px;
    }

    .user-auth-input {
        font-size: 14px;
    }

    .user-auth-body {
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .user-auth-card {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }

    .user-auth-logo img {
        height: 40px;
    }

    .user-auth-title {
        font-size: 16px;
    }

    .user-auth-input {
        min-height: 48px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .user-auth-btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .user-auth-input-icon {
        width: 40px;
        min-width: 40px;
        font-size: 14px;
    }

    .user-auth-pw-toggle {
        width: 40px;
    }
}
