
        /* ===== RESET & BASE ===== */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-cream: #FAF7F2;
            --bg-warm: #F5F0E8;
            --bg-card: #FFFFFF;
            --green-accent: #8FB996;
            --green-light: #B5D4BB;
            --green-dark: #6A9A72;
            --green-muted: #D4E7D8;
            --green-ultralight: #EEF5EF;
            --text-dark: #3A3A3A;
            --text-medium: #6B6B6B;
            --text-light: #9A9A9A;
            --warm-accent: #D4A97A;
            --warm-light: #E8D5BE;
            --border-light: #E8E0D5;
            --error: #E07A7A;
            --error-bg: #FDF0F0;
            --success: #6A9A72;
            --success-bg: #F0F7F2;
            --shadow-sm: 0 2px 8px rgba(58, 58, 58, 0.06);
            --shadow-md: 0 4px 20px rgba(58, 58, 58, 0.08);
            --shadow-lg: 0 8px 40px rgba(58, 58, 58, 0.1);
            --shadow-xl: 0 16px 60px rgba(58, 58, 58, 0.12);
            --radius-sm: 12px;
            --radius-md: 20px;
            --radius-lg: 30px;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--bg-cream);
            color: var(--text-dark);
            line-height: 1.7;
            min-height: 100vh;
            overflow-x: hidden;
        }

        h1, h2, h3, h4 {
            font-family: 'Cormorant Garamond', serif;
            font-weight: 600;
            line-height: 1.3;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }

        img {
            max-width: 100%;
            display: block;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== HEADER ===== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(250, 247, 242, 0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(232, 224, 213, 0.5);
        }

        .header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 80px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 42px;
            height: 42px;
            background: var(--green-accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .logo-icon::before {
            content: '🧘';
            font-size: 20px;
        }

        .logo-text {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--text-dark);
            letter-spacing: 0.02em;
        }

        .logo-text span {
            color: var(--green-accent);
        }

        .header-back {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-medium);
        }

        .header-back:hover {
            color: var(--green-dark);
        }

        .header-back::before {
            content: '←';
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }

        .header-back:hover::before {
            transform: translateX(-3px);
        }

        /* ===== AUTH PAGE ===== */
        .auth-page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 120px 0 60px;
            position: relative;
        }

        .auth-page::before {
            content: '';
            position: absolute;
            top: 100px;
            right: -200px;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--green-muted) 0%, transparent 70%);
            border-radius: 50%;
            opacity: 0.4;
            pointer-events: none;
        }

        .auth-page::after {
            content: '';
            position: absolute;
            bottom: -100px;
            left: -150px;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, var(--warm-light) 0%, transparent 70%);
            border-radius: 50%;
            opacity: 0.3;
            pointer-events: none;
        }

        .auth-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            max-width: 1100px;
            margin: 0 auto;
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-xl);
            position: relative;
            z-index: 1;
            min-height: 680px;
        }

        /* ===== LEFT SIDE — INFO PANEL ===== */
        .auth-info {
            background: linear-gradient(160deg, var(--green-accent) 0%, var(--green-dark) 60%, #55855E 100%);
            padding: 60px 50px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .auth-info::before {
            content: '';
            position: absolute;
            top: -80px;
            right: -80px;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 50%;
        }

        .auth-info::after {
            content: '';
            position: absolute;
            bottom: -120px;
            left: -60px;
            width: 400px;
            height: 400px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 50%;
        }

        .auth-info-content {
            position: relative;
            z-index: 1;
        }

        .auth-info h2 {
            font-size: 2.4rem;
            color: #fff;
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .auth-info h2 em {
            font-style: italic;
            color: rgba(255, 255, 255, 0.8);
        }

        .auth-info > .auth-info-content > p {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 40px;
        }

        .auth-features {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .auth-feature {
            display: flex;
            align-items: center;
            gap: 16px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
        }

        .auth-feature-icon {
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .auth-feature-text strong {
            display: block;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .auth-feature-text span {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.65);
        }

        .auth-info-footer {
            position: relative;
            z-index: 1;
        }

        .auth-info-footer .decorative-yoga {
            font-size: 5rem;
            text-align: center;
            opacity: 0.3;
            margin-bottom: 20px;
        }

        .auth-info-footer p {
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.8rem;
            font-style: italic;
        }

        /* ===== RIGHT SIDE — FORM PANEL ===== */
        .auth-form-panel {
            padding: 50px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* ===== TABS ===== */
        .auth-tabs {
            display: flex;
            background: var(--bg-cream);
            border-radius: 50px;
            padding: 4px;
            margin-bottom: 36px;
        }

        .auth-tab {
            flex: 1;
            padding: 12px 20px;
            border: none;
            background: transparent;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-light);
            cursor: pointer;
            border-radius: 50px;
            transition: all 0.3s ease;
        }

        .auth-tab.active {
            background: var(--bg-card);
            color: var(--green-dark);
            box-shadow: var(--shadow-sm);
        }

        .auth-tab:hover:not(.active) {
            color: var(--text-medium);
        }

        /* ===== FORM ===== */
        .auth-form {
            display: none;
            animation: formFadeIn 0.4s ease;
        }

        .auth-form.active {
            display: block;
        }

        @keyframes formFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-title {
            font-size: 1.8rem;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .form-subtitle {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-bottom: 28px;
        }

        .form-group {
            margin-bottom: 18px;
            position: relative;
        }

        .form-group label {
            display: block;
            font-size: 0.78rem;
            font-weight: 500;
            color: var(--text-medium);
            margin-bottom: 6px;
            letter-spacing: 0.02em;
        }

        .form-group input {
            width: 100%;
            padding: 13px 16px;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-sm);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9rem;
            color: var(--text-dark);
            background: var(--bg-cream);
            transition: all 0.3s ease;
            outline: none;
        }

        .form-group input:focus {
            border-color: var(--green-accent);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(143, 185, 150, 0.12);
        }

        .form-group input.error {
            border-color: var(--error);
            background: var(--error-bg);
        }

        .form-group input.success {
            border-color: var(--success);
            background: var(--success-bg);
        }

        .form-group input::placeholder {
            color: var(--text-light);
        }

        .form-group .input-icon {
            position: absolute;
            right: 16px;
            top: 38px;
            font-size: 1.1rem;
            cursor: pointer;
            opacity: 0.4;
            transition: opacity 0.3s ease;
        }

        .form-group .input-icon:hover {
            opacity: 0.7;
        }

        .error-message {
            font-size: 0.75rem;
            color: var(--error);
            margin-top: 4px;
            display: none;
        }

        .error-message.visible {
            display: block;
            animation: formFadeIn 0.3s ease;
        }

        .password-strength {
            margin-top: 8px;
            display: none;
        }

        .password-strength.visible {
            display: block;
        }

        .strength-bars {
            display: flex;
            gap: 4px;
            margin-bottom: 4px;
        }

        .strength-bar {
            height: 3px;
            flex: 1;
            background: var(--border-light);
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .strength-bar.active-weak { background: var(--error); }
        .strength-bar.active-medium { background: var(--warm-accent); }
        .strength-bar.active-strong { background: var(--green-accent); }

        .strength-text {
            font-size: 0.72rem;
            color: var(--text-light);
        }

        /* ===== FORM ROW ===== */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        /* ===== CHECKBOX ===== */
        .form-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 24px;
            cursor: pointer;
        }

        .form-checkbox input[type="checkbox"] {
            display: none;
        }

        .checkbox-custom {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-light);
            border-radius: 6px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            margin-top: 1px;
        }

        .checkbox-custom::after {
            content: '✓';
            font-size: 0.7rem;
            color: #fff;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s ease;
        }

        .form-checkbox input:checked + .checkbox-custom {
            background: var(--green-accent);
            border-color: var(--green-accent);
        }

        .form-checkbox input:checked + .checkbox-custom::after {
            opacity: 1;
            transform: scale(1);
        }

        .checkbox-text {
            font-size: 0.8rem;
            color: var(--text-medium);
            line-height: 1.5;
        }

        .checkbox-text a {
            color: var(--green-dark);
            font-weight: 500;
        }

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

        /* ===== BUTTONS ===== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: 50px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            letter-spacing: 0.03em;
            cursor: pointer;
            border: none;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: var(--green-accent);
            color: #fff;
            width: 100%;
        }

        .btn-primary:hover {
            background: var(--green-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(143, 185, 150, 0.35);
        }

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

        .btn-primary.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .btn-primary .spinner {
            display: none;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .btn-primary.loading .spinner {
            display: block;
        }

        .btn-primary.loading .btn-text {
            display: none;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ===== DIVIDER ===== */
        .form-divider {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 24px 0;
        }

        .form-divider::before,
        .form-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-light);
        }

        .form-divider span {
            font-size: 0.78rem;
            color: var(--text-light);
            white-space: nowrap;
        }

        /* ===== SOCIAL BUTTONS ===== */
        .social-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 24px;
        }

        .btn-social {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 20px;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text-medium);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-social:hover {
            border-color: var(--green-accent);
            background: var(--green-ultralight);
            color: var(--green-dark);
        }

        .btn-social .social-icon {
            font-size: 1.2rem;
        }

        /* ===== FORGOT PASSWORD ===== */
        .form-footer {
            text-align: center;
            margin-top: 20px;
        }

        .forgot-link {
            font-size: 0.82rem;
            color: var(--green-accent);
            font-weight: 500;
        }

        .forgot-link:hover {
            color: var(--green-dark);
            text-decoration: underline;
        }

        .switch-form-text {
            font-size: 0.82rem;
            color: var(--text-light);
            text-align: center;
            margin-top: 16px;
        }

        .switch-form-text a {
            color: var(--green-dark);
            font-weight: 500;
        }

        .switch-form-text a:hover {
            text-decoration: underline;
        }

        /* ===== SUCCESS OVERLAY ===== */
        .success-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(250, 247, 242, 0.95);
            backdrop-filter: blur(10px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.4s ease;
        }

        .success-overlay.visible {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .success-card {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            padding: 60px 50px;
            text-align: center;
            max-width: 440px;
            box-shadow: var(--shadow-xl);
            animation: scaleIn 0.5s ease;
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .success-icon {
            width: 80px;
            height: 80px;
            background: var(--green-muted);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            font-size: 2.5rem;
        }

        .success-card h3 {
            font-size: 1.8rem;
            color: var(--text-dark);
            margin-bottom: 12px;
        }

        .success-card p {
            font-size: 0.9rem;
            color: var(--text-medium);
            line-height: 1.7;
            margin-bottom: 32px;
        }

        .success-card .btn {
            min-width: 200px;
        }

        /* ===== PASSWORD RESET MODAL ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(58, 58, 58, 0.4);
            backdrop-filter: blur(4px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.visible {
            display: flex;
        }

        .modal {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            padding: 40px;
            max-width: 420px;
            width: 90%;
            box-shadow: var(--shadow-xl);
            animation: scaleIn 0.4s ease;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            background: var(--bg-cream);
            border: none;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: var(--error-bg);
            color: var(--error);
        }

        .modal h3 {
            font-size: 1.6rem;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .modal > p {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-bottom: 24px;
            line-height: 1.7;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 900px) {
            .auth-wrapper {
                grid-template-columns: 1fr;
                max-width: 520px;
            }

            .auth-info {
                padding: 40px 30px;
            }

            .auth-info h2 {
                font-size: 1.8rem;
            }

            .auth-features {
                display: none;
            }

            .auth-form-panel {
                padding: 40px 30px;
            }

            .auth-info-footer .decorative-yoga {
                font-size: 3rem;
            }
        }

        @media (max-width: 600px) {
            .auth-page {
                padding: 100px 16px 40px;
            }

            .auth-wrapper {
                border-radius: var(--radius-md);
            }

            .auth-info {
                padding: 30px 24px;
            }

            .auth-info h2 {
                font-size: 1.5rem;
            }

            .auth-form-panel {
                padding: 30px 24px;
            }

            .form-title {
                font-size: 1.5rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .social-buttons {
                grid-template-columns: 1fr;
            }

            .header .container {
                padding: 0 16px;
            }

            .logo-text {
                font-size: 1.3rem;
            }
        }
/* Добавьте в конец файла auth.css */

.auth-nav {
    display: flex;
    align-items: center;
}

.back-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--green-muted);
    color: var(--green-dark);
}

.form-divider {
    margin: 24px 0;
    text-align: center;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px dashed var(--border-light);
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background: var(--bg-cream);
    color: var(--green-dark);
    border-color: var(--green-accent);
}