* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(160deg, #f5f9ff 0%, #dce8f8 30%, #c5d8f0 60%, #b5cce8 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        /* ===== БОЛЬШИЕ СМАЙЛИКИ НА ЗАДНЕМ ФОНЕ ===== */
        .bg-emojis {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .bg-emojis .emoji {
            position: absolute;
            font-size: 120px;
            opacity: 0.06;
            user-select: none;
            animation: float 20s ease-in-out infinite;
        }

        .bg-emojis .emoji:nth-child(1) { top: 5%; left: 5%; font-size: 180px; animation-delay: 0s; }
        .bg-emojis .emoji:nth-child(2) { top: 15%; right: 8%; font-size: 140px; animation-delay: 3s; }
        .bg-emojis .emoji:nth-child(3) { bottom: 20%; left: 3%; font-size: 200px; animation-delay: 6s; }
        .bg-emojis .emoji:nth-child(4) { bottom: 10%; right: 5%; font-size: 160px; animation-delay: 9s; }
        .bg-emojis .emoji:nth-child(5) { top: 45%; left: 2%; font-size: 100px; animation-delay: 2s; }
        .bg-emojis .emoji:nth-child(6) { top: 40%; right: 2%; font-size: 120px; animation-delay: 7s; }
        .bg-emojis .emoji:nth-child(7) { top: 70%; left: 8%; font-size: 90px; animation-delay: 4s; }
        .bg-emojis .emoji:nth-child(8) { top: 8%; left: 45%; font-size: 100px; animation-delay: 5s; }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            25% { transform: translateY(-20px) rotate(5deg); }
            50% { transform: translateY(10px) rotate(-3deg); }
            75% { transform: translateY(-15px) rotate(4deg); }
        }

        .auth-container {
            width: 100%;
            max-width: 820px;
            position: relative;
            z-index: 1;
        }

        .auth-card {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(28px);
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 28px;
            padding: 40px 48px;
            box-shadow: 0 24px 80px rgba(31, 74, 138, 0.06);
            animation: modalIn 0.3s ease;
        }

        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.95) translateY(16px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .auth-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .auth-header .brand-name {
            font-size: 28px;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            background: linear-gradient(135deg, #0b2a54, #3a7abd, #5a9adf);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: block;
            text-decoration: none;
            margin-bottom: 4px;
        }

        .auth-header .brand-logo {
            display: block;
            margin: 0 auto 12px;
            width: 72px;
            height: 72px;
            text-decoration: none;
        }

        .auth-header .brand-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .auth-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #0b1e3a;
            margin-bottom: 6px;
        }

        .auth-header .sub-text {
            color: #4a5f7a;
            font-size: 14px;
            display: block;
        }

        /* ===== ФОРМА ===== */
        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            font-size: 13px;
            color: #1a3d6e;
            margin-bottom: 4px;
        }

        .form-group label .required {
            color: #dc3545;
        }

        .form-group input {
            width: 100%;
            padding: 12px 14px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 14px;
            font-family: inherit;
            font-size: 14px;
            transition: 0.3s ease;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            color: #1a2639;
            box-sizing: border-box;
        }

        .form-group input::placeholder {
            color: #6a7f9e;
        }

        .form-group input:focus {
            outline: none;
            border-color: rgba(31, 74, 138, 0.3);
            background: rgba(255, 255, 255, 0.25);
            box-shadow: 0 0 0 4px rgba(31, 74, 138, 0.04);
        }

        /* ===== СТРОКИ ===== */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        /* ===== МЕССЕНДЖЕРЫ ===== */
        .messenger-group {
            display: flex;
            gap: 8px;
        }

        .messenger-group .messenger-option {
            flex: 1;
        }

        .messenger-group .messenger-option input[type="radio"] {
            display: none;
        }

        .messenger-group .messenger-option label {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
            font-size: 20px;
            color: #6a7f9e;
        }

        .messenger-group .messenger-option label:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .messenger-group .messenger-option input[type="radio"]:checked + label {
            background: rgba(20, 50, 100, 0.12);
            border-color: rgba(20, 50, 100, 0.4);
            box-shadow: 0 0 0 4px rgba(20, 50, 100, 0.04);
        }

        .messenger-group .messenger-option input[type="radio"]:checked + label .tg { color: #0088cc; }
        .messenger-group .messenger-option input[type="radio"]:checked + label .wa { color: #25d366; }
        .messenger-group .messenger-option input[type="radio"]:checked + label .vk { color: #4a76a8; }
        .messenger-group .messenger-option input[type="radio"]:checked + label .vb { color: #7c3aed; }

        .messenger-group .messenger-option label .tg { color: #0088cc; }
        .messenger-group .messenger-option label .wa { color: #25d366; }
        .messenger-group .messenger-option label .vk { color: #4a76a8; }
        .messenger-group .messenger-option label .vb { color: #7c3aed; }

        /* ===== КНОПКА (уменьшена) ===== */
        .btn-submit {
            width: auto;
            min-width: 360px;
            padding: 12px 32px;
            background: rgba(20, 50, 100, 0.9);
            backdrop-filter: blur(12px);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 60px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: 0.3s ease;
            font-family: inherit;
            margin-top: 8px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .btn-submit:hover {
            background: rgba(10, 30, 70, 0.95);
            box-shadow: 0 8px 32px rgba(20, 50, 100, 0.25);
            border-color: rgba(255, 255, 255, 0.35);
            transform: translateY(-2px);
        }

        .btn-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .auth-footer {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: #3a5582;
        }

        .auth-footer a {
            color: #1f4a8a;
            text-decoration: none;
            font-weight: 600;
        }

        .auth-footer a:hover {
            text-decoration: underline;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 14px;
            color: #3a5f8a;
            text-decoration: none;
            font-size: 13px;
            transition: 0.3s ease;
            font-weight: 500;
        }

        .back-link:hover {
            color: #1a3a64;
            transform: translateX(-3px);
        }

        .spinner {
            display: inline-block;
            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;
            vertical-align: middle;
            margin-right: 6px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .message {
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 13px;
            margin-bottom: 16px;
            display: none;
        }

        .message.error {
            background: rgba(220, 38, 38, 0.15);
            border: 1px solid rgba(220, 38, 38, 0.3);
            color: #b91c1c;
            display: block;
        }

        .message.success {
            background: rgba(34, 197, 94, 0.15);
            border: 1px solid rgba(34, 197, 94, 0.3);
            color: #16a34a;
            display: block;
        }

        @media (max-width: 768px) {
            .auth-card { padding: 28px 20px; }
            .auth-container { max-width: 440px; }
            .form-row { grid-template-columns: 1fr; gap: 0; }
            .messenger-group .messenger-option label { font-size: 18px; padding: 8px; }
            .auth-header .brand-name { font-size: 22px; }
            .auth-header h2 { font-size: 20px; }
            .auth-header .brand-logo { width: 56px; height: 56px; }
            .bg-emojis .emoji { font-size: 60px !important; }
            .btn-submit { 
                width: 100%; 
                min-width: unset; 
                padding: 12px 20px;
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            .auth-card { padding: 20px 16px; }
            .auth-header .sub-text { font-size: 12px; }
            .form-group input { padding: 10px 12px; font-size: 13px; }
            .messenger-group .messenger-option label { font-size: 16px; padding: 6px; }
            .bg-emojis .emoji { font-size: 40px !important; }
            .btn-submit { 
                padding: 10px 16px;
                font-size: 13px;
            }
        }
