        /* ==== Базовые стили ==== */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #670ec0 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,.3);
            width: 100%;
            max-width: 420px;
            padding: 40px;
        }

        .logo { text-align: center; margin-bottom: 30px; }
        .logo h1 { color: #667eea; font-size: 28px; font-weight: 600; margin-bottom: 8px; }
        .logo p { color: #6b7280; font-size: 14px; }

        h2 { text-align: center; color: #1f2937; margin-bottom: 30px; font-size: 24px; font-weight: 600; }

        form { display: flex; flex-direction: column; gap: 20px; }

        .form-group { display: flex; flex-direction: column; gap: 8px; }
        label { color: #374151; font-size: 14px; font-weight: 500; }

        input[type="text"],
        input[type="password"] {
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color .2s, box-shadow .2s;
            outline: none;
        }
        input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }

        .help-text { font-size: 12px; color: #6b7280; margin-top: -4px; }

        button {
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform .2s, box-shadow .2s;
            position: relative;
        }
        button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(102,126,234,.3); }
        button:active { transform: translateY(0); }
        button:disabled { opacity: .6; cursor: not-allowed; }

        .switch-link {
            text-align: center;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid #e5e7eb;
        }
        .switch-link p { color: #6b7280; font-size: 14px; margin-bottom: 8px; }
        .switch-link a { color: #667eea; text-decoration: none; font-weight: 500; transition: color .2s; }
        .switch-link a:hover { color: #764ba2; text-decoration: underline; }

        /* ==== Сообщения ==== */
        .message {
            background: #fee2e2;
            color: #dc2626;
            padding: 12px;
            border-radius: 8px;
            font-size: 14px;
            text-align: center;
            display: none;
            border: 1px solid #fecaca;
            margin-top: 10px;
        }
        .message.success {
            background: #d1fae5;
            color: #059669;
            border-color: #a7f3d0;
        }

        /* ==== Индикатор загрузки ==== */
        .loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #fff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin .8s linear infinite;
            margin-right: 8px;
            vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }