.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-visual {
    position: relative;
    padding: 48px;
    background:
        linear-gradient(135deg, rgba(25, 230, 209, 0.07), rgba(25, 230, 209, 0.01)),
        linear-gradient(180deg, #07131b 0%, #041019 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
}

html[dir="rtl"] .auth-visual,
body.rtl .auth-visual {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 0;
    text-align: right;
}

html[dir="ltr"] .auth-visual,
body.ltr .auth-visual {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 0;
    text-align: left;
}

body.light-mode .auth-visual {
    background:
        linear-gradient(135deg, rgba(15, 185, 168, 0.05), rgba(15, 185, 168, 0.01)),
        linear-gradient(180deg, #ffffff 0%, #eef7fb 100%);
}

html[dir="rtl"] body.light-mode .auth-visual,
body.light-mode.rtl .auth-visual {
    border-left: 1px solid rgba(16, 32, 43, 0.06);
}

html[dir="ltr"] body.light-mode .auth-visual,
body.light-mode.ltr .auth-visual {
    border-right: 1px solid rgba(16, 32, 43, 0.06);
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
}

.auth-visual::before {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(25, 230, 209, 0.22), transparent 70%);
}

.auth-visual::after {
    width: 220px;
    height: 220px;
    bottom: -70px;
    left: -50px;
    background: radial-gradient(circle, rgba(25, 230, 209, 0.15), transparent 70%);
}

.auth-brand {
    position: relative;
    z-index: 1;
}

.auth-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(25, 230, 209, 0.08);
    border: 1px solid rgba(25, 230, 209, 0.18);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 24px;
}

.auth-brand h1 {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 900;
    margin: 0 0 16px;
}

.auth-brand p {
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

.auth-features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px 18px;
}

body.light-mode .auth-feature {
    background: rgba(16, 32, 43, 0.02);
    border: 1px solid rgba(16, 32, 43, 0.05);
}

.auth-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 230, 209, 0.10);
    border: 1px solid rgba(25, 230, 209, 0.20);
    color: var(--primary);
    flex-shrink: 0;
}

.auth-feature-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
}

.auth-feature-text span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.auth-form-side {
    padding: 40px 34px;
    background: linear-gradient(180deg, rgba(6, 14, 20, 0.96), rgba(3, 9, 14, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .auth-form-side {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.98));
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-title {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title h2 {
    font-size: 32px;
    margin: 0 0 8px;
    font-weight: 900;
}

.auth-title p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.auth-alert {
    padding: 13px 15px;
    border-radius: 15px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

html[dir="rtl"] .auth-alert,
body.rtl .auth-alert {
    text-align: right;
}

html[dir="ltr"] .auth-alert,
body.ltr .auth-alert {
    text-align: left;
}

.auth-alert-error {
    background: rgba(255, 107, 107, 0.10);
    border: 1px solid rgba(255, 107, 107, 0.20);
    color: #ffd5d5;
}

.auth-alert-success {
    background: rgba(77, 255, 180, 0.10);
    border: 1px solid rgba(77, 255, 180, 0.20);
    color: #d7ffec;
}

body.light-mode .auth-alert-error {
    color: #b42318;
}

body.light-mode .auth-alert-success {
    color: #057a4c;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field.full {
    grid-column: 1 / -1;
}

.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

html[dir="rtl"] .auth-field label,
body.rtl .auth-field label {
    text-align: right;
}

html[dir="ltr"] .auth-field label,
body.ltr .auth-field label {
    text-align: left;
}

.auth-label-muted {
    color: var(--muted);
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #7e919f;
    pointer-events: none;
}

html[dir="rtl"] .auth-input-icon,
body.rtl .auth-input-icon {
    right: 14px;
    left: auto;
}

html[dir="ltr"] .auth-input-icon,
body.ltr .auth-input-icon {
    left: 14px;
    right: auto;
}

.auth-field input {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    outline: none;
    transition: 0.2s ease;
}

html[dir="rtl"] .auth-field input,
body.rtl .auth-field input {
    padding: 0 44px 0 14px;
    text-align: right;
}

html[dir="ltr"] .auth-field input,
body.ltr .auth-field input {
    padding: 0 14px 0 44px;
    text-align: left;
}

body.light-mode .auth-field input {
    background: rgba(16, 32, 43, 0.02);
    border: 1px solid rgba(16, 32, 43, 0.08);
}

.auth-field input::placeholder {
    color: #6f8492;
}

.auth-field input:focus {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 0 4px rgba(25, 230, 209, 0.08);
}

.auth-error {
    color: #ffb3b3;
    font-size: 12px;
    font-weight: 700;
    margin-top: 7px;
}

html[dir="rtl"] .auth-error,
body.rtl .auth-error {
    text-align: right;
}

html[dir="ltr"] .auth-error,
body.ltr .auth-error {
    text-align: left;
}

.auth-note {
    margin-top: -4px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.auth-submit,
.auth-secondary-btn,
.auth-back-btn {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-submit {
    border: none;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #031116;
    box-shadow: 0 16px 34px rgba(25, 230, 209, 0.16);
}

.auth-submit:hover,
.auth-secondary-btn:hover,
.auth-back-btn:hover {
    transform: translateY(-1px);
}

.auth-secondary-btn,
.auth-back-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.auth-secondary-btn {
    margin-top: 12px;
}

.auth-back-btn {
    margin-top: 10px;
}

body.light-mode .auth-secondary-btn,
body.light-mode .auth-back-btn {
    background: rgba(16, 32, 43, 0.03);
    border-color: rgba(16, 32, 43, 0.10);
}

.auth-secondary-btn:hover,
.auth-back-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

body.light-mode .auth-secondary-btn:hover,
body.light-mode .auth-back-btn:hover {
    background: rgba(16, 32, 43, 0.05);
    border-color: rgba(16, 32, 43, 0.16);
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

body.light-mode .auth-separator::before,
body.light-mode .auth-separator::after {
    background: rgba(16, 32, 43, 0.08);
}

.auth-google-btn {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

body.light-mode .auth-google-btn {
    background: rgba(16, 32, 43, 0.03);
    border-color: rgba(16, 32, 43, 0.10);
}

.auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

body.light-mode .auth-google-btn:hover {
    background: rgba(16, 32, 43, 0.05);
    border-color: rgba(16, 32, 43, 0.16);
}

.auth-google-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.auth-link {
    text-align: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.auth-link a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-side {
        padding: 22px;
    }

    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 14px;
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .auth-title h2 {
        font-size: 28px;
    }
}