* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-weight: 300;
        }

        body {
            background-color: #060912;
            color: #e8ecf2;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            -webkit-tap-highlight-color: transparent;
            background-image: 
                radial-gradient(ellipse at 20% 0%, #1a1030 0%, transparent 50%),
                radial-gradient(ellipse at 80% 100%, #1a2540 0%, transparent 50%),
                radial-gradient(ellipse at 50% 30%, #0d1525 0%, #060912 100%);
            background-attachment: fixed;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }
        @keyframes glowPulse {
            0%, 100% { box-shadow: 0 0 30px rgba(255, 77, 109, 0.3); }
            50% { box-shadow: 0 0 60px rgba(255, 77, 109, 0.6), 0 0 100px rgba(255, 77, 109, 0.2); }
        }
        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @keyframes slideDown {
            from { transform: translateY(-30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-8px); }
            75% { transform: translateX(8px); }
        }
        @keyframes successBounce {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.1); }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes borderGlow {
            0%, 100% { border-color: rgba(255, 77, 109, 0.3); }
            50% { border-color: rgba(255, 77, 109, 0.8); }
        }

        .auth-container {
            width: 100%;
            max-width: 480px;
            position: relative;
        }

        /* Логотип */
        .logo-section {
            text-align: center;
            margin-bottom: 32px;
            animation: slideDown 0.6s ease;
        }
        .logo-icon {
            font-size: 4rem;
            color: #ff4d6d;
            animation: float 3s infinite ease-in-out;
            display: inline-block;
        }
        .logo-text {
            font-size: 2rem;
            font-weight: 200;
            letter-spacing: -1px;
            margin-top: 8px;
        }
        .logo-text strong {
            font-weight: 700;
            background: linear-gradient(135deg, #ff4d6d, #ff8c42);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .logo-subtitle {
            font-size: 0.85rem;
            opacity: 0.5;
            margin-top: 4px;
        }

        /* Карточка */
        .auth-card {
            background: rgba(16, 22, 38, 0.85);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 0.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 32px;
            padding: 32px 28px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.5s ease;
            position: relative;
            overflow: hidden;
        }
        .auth-card::before {
            content: '';
            position: absolute;
            top: -30%;
            right: -30%;
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(255, 77, 109, 0.06) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .auth-card::after {
            content: '';
            position: absolute;
            bottom: -20%;
            left: -20%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(72, 132, 255, 0.05) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        /* Переключатель вкладок */
        .tab-switcher {
            display: flex;
            gap: 4px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 16px;
            padding: 4px;
            margin-bottom: 28px;
            position: relative;
            z-index: 1;
        }
        .tab-btn {
            flex: 1;
            padding: 12px 16px;
            border-radius: 12px;
            border: none;
            background: transparent;
            color: #7a8faa;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: 0.3s;
            position: relative;
        }
        .tab-btn.active {
            background: rgba(255, 77, 109, 0.12);
            color: #fff;
        }
        .tab-btn i {
            margin-right: 6px;
        }

        /* Формы */
        .form-panel {
            display: none;
            flex-direction: column;
            gap: 18px;
            position: relative;
            z-index: 1;
        }
        .form-panel.active {
            display: flex;
            animation: slideUp 0.4s ease;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .input-label {
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #5a7fb5;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .input-label i {
            font-size: 0.7rem;
            color: #4884ff;
        }
        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        .input-field {
            width: 100%;
            background: rgba(255, 255, 255, 0.04);
            border: 0.5px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 14px 16px;
            padding-right: 44px;
            color: #fff;
            font-size: 0.9rem;
            font-weight: 400;
            outline: none;
            transition: 0.3s;
        }
        .input-field:focus {
            border-color: rgba(255, 77, 109, 0.5);
            box-shadow: 0 0 20px rgba(255, 77, 109, 0.1);
            background: rgba(255, 255, 255, 0.06);
        }
        .input-field.error {
            border-color: #ff4d6d;
            animation: shake 0.5s ease;
        }
        .input-field.success {
            border-color: #3acf6b;
        }
        .input-icon {
            position: absolute;
            right: 14px;
            color: #5a6d8a;
            font-size: 0.9rem;
            cursor: pointer;
            transition: 0.2s;
        }
        .input-icon:hover {
            color: #fff;
        }
        .input-error {
            font-size: 0.7rem;
            color: #ff4d6d;
            min-height: 18px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .input-hint {
            font-size: 0.7rem;
            color: #5a6d8a;
            min-height: 18px;
        }

        /* Индикатор силы пароля */
        .password-strength {
            display: flex;
            gap: 4px;
            margin-top: 4px;
        }
        .strength-bar {
            flex: 1;
            height: 3px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 2px;
            transition: 0.3s;
        }
        .strength-bar.weak { background: #ff4d6d; }
        .strength-bar.medium { background: #ffb347; }
        .strength-bar.strong { background: #3acf6b; }
        .strength-text {
            font-size: 0.65rem;
            margin-top: 2px;
            font-weight: 500;
        }

        /* Чекбоксы */
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.8rem;
        }
        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #ff4d6d;
            cursor: pointer;
        }
        .checkbox-group a {
            color: #4884ff;
            text-decoration: none;
        }
        .checkbox-group a:hover {
            text-decoration: underline;
        }

        /* Кнопки */
        .btn {
            padding: 15px 24px;
            border-radius: 16px;
            font-weight: 500;
            font-size: 0.95rem;
            cursor: pointer;
            border: none;
            transition: 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
            width: 100%;
            letter-spacing: -0.2px;
            position: relative;
            overflow: hidden;
        }
        .btn-primary {
            background: linear-gradient(135deg, #ff4d6d, #ff6b6b);
            color: white;
            font-weight: 600;
            box-shadow: 0 10px 30px rgba(255, 77, 109, 0.3);
            animation: glowPulse 3s infinite;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(255, 77, 109, 0.5);
        }
        .btn-primary:active {
            transform: scale(0.97);
        }
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
            animation: none;
        }
        .btn-outline {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
        }
        .btn-outline:hover {
            background: rgba(255, 255, 255, 0.06);
        }

        /* Социальные кнопки */
        .social-buttons {
            display: flex;
            gap: 10px;
        }
        .btn-social {
            flex: 1;
            padding: 12px;
            border-radius: 14px;
            border: 0.5px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.03);
            color: #fff;
            font-size: 0.8rem;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .btn-social:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        .btn-social i {
            font-size: 1.1rem;
        }
        .btn-google i { color: #ea4335; }
        .btn-discord i { color: #5865f2; }
        .btn-telegram i { color: #26a5e4; }

        /* Разделитель */
        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #5a6d8a;
        }
        .divider-line {
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.08);
        }

        /* Восстановление пароля */
        .forgot-link {
            text-align: right;
            font-size: 0.78rem;
        }
        .forgot-link a {
            color: #4884ff;
            text-decoration: none;
        }
        .forgot-link a:hover {
            text-decoration: underline;
        }

        /* Модальное окно */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 500;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-overlay.show {
            display: flex;
        }
        .modal-card {
            background: rgba(16, 22, 38, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 28px;
            padding: 28px 24px;
            max-width: 420px;
            width: 100%;
            text-align: center;
            animation: successBounce 0.5s ease;
        }
        .modal-icon {
            font-size: 4rem;
            margin-bottom: 12px;
        }
        .modal-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .modal-text {
            font-size: 0.85rem;
            opacity: 0.7;
            margin-bottom: 16px;
        }
        .code-inputs {
            display: flex;
            gap: 8px;
            justify-content: center;
            margin: 16px 0;
        }
        .code-input {
            width: 48px;
            height: 56px;
            text-align: center;
            font-size: 1.4rem;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.04);
            border: 0.5px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            color: #fff;
            outline: none;
        }
        .code-input:focus {
            border-color: #ff4d6d;
            box-shadow: 0 0 15px rgba(255, 77, 109, 0.2);
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            padding: 14px 28px;
            border-radius: 30px;
            font-weight: 500;
            font-size: 0.85rem;
            z-index: 600;
            animation: successBounce 0.4s ease;
            display: none;
        }
        .toast.show {
            display: block;
        }
        .toast-success {
            background: #3acf6b;
            color: #000;
        }
        .toast-error {
            background: #ff4d6d;
            color: #fff;
        }

        .hidden {
            display: none !important;
        }

        /* Адаптив */
        @media (max-width: 480px) {
            .auth-card {
                padding: 24px 18px;
                border-radius: 28px;
            }
            .logo-text {
                font-size: 1.5rem;
            }
            .logo-icon {
                font-size: 3rem;
            }
            .social-buttons {
                flex-direction: column;
            }
            .btn {
                padding: 13px 18px;
                font-size: 0.85rem;
            }
            .tab-btn {
                font-size: 0.8rem;
                padding: 10px 8px;
            }
            .input-field {
                padding: 12px 14px;
                font-size: 0.85rem;
            }
            .code-input {
                width: 40px;
                height: 48px;
                font-size: 1.2rem;
            }
        }
