        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background: #f1f5f9;
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            padding: 20px 16px 48px;
            color: #0f172a;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 卡片容器 */
        .auth-container {
            max-width: 500px;
            width: 100%;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 32px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            transition: all 0.2s ease;
        }

        /* 渐变头部 */
        .auth-header {
            background: linear-gradient(135deg, #1e3c72 0%, #2b4c7c 100%);
            padding: 32px 24px;
            color: white;
            text-align: center;
        }

        .auth-header h1 {
            font-size: 1.8rem;
            font-weight: 600;
            letter-spacing: -0.3px;
            margin-bottom: 8px;
        }

        .auth-header p {
            font-size: 0.9rem;
            opacity: 0.85;
        }

        /* Tab 切换栏 */
        .tab-bar {
            display: flex;
            border-bottom: 1.5px solid #e2e8f0;
            background: #ffffff;
            padding: 0 20px;
        }

        .tab-btn {
            flex: 1;
            text-align: center;
            padding: 16px 0;
            font-size: 1rem;
            font-weight: 600;
            background: transparent;
            border: none;
            cursor: pointer;
            color: #64748b;
            transition: all 0.2s;
            border-bottom: 2px solid transparent;
            margin-bottom: -1.5px;
        }

        .tab-btn.active {
            color: #1e3c72;
            border-bottom-color: #1e3c72;
        }

        /* 表单区域 */
        .form-panel {
            padding: 28px 24px 32px;
            transition: 0.2s;
        }

        .form-panel.hidden {
            display: none;
        }

        .field-group {
            margin-bottom: 22px;
            display: flex;
            flex-direction: column;
        }

        label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .required-star {
            color: #e11d48;
            font-size: 1rem;
            margin-left: 2px;
        }

        input {
            background: #fff;
            border: 1.5px solid #e2e8f0;
            border-radius: 16px;
            padding: 12px 16px;
            font-size: 0.95rem;
            font-family: inherit;
            color: #0f172a;
            transition: all 0.2s;
            outline: none;
            width: 100%;
        }

        input:focus {
            border-color: #2b4c7c;
            box-shadow: 0 0 0 3px rgba(43, 76, 124, 0.2);
        }

        .error-message {
            font-size: 0.7rem;
            color: #e11d48;
            margin-top: 5px;
            margin-left: 12px;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        /* 提交按钮 */
        .submit-btn {
            background: #1e3c72;
            color: white;
            border: none;
            border-radius: 44px;
            padding: 14px 20px;
            font-size: 1rem;
            font-weight: 600;
            width: 100%;
            margin-top: 12px;
            cursor: pointer;
            transition: 0.2s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        }

        .submit-btn:hover {
            background: #0f2a4a;
            transform: scale(0.98);
        }

        .submit-btn:active {
            transform: scale(0.97);
        }

        /* 辅助链接 */
        .helper-link {
            text-align: center;
            margin-top: 20px;
            font-size: 0.85rem;
            color: #5b6e8c;
        }

        .helper-link a {
            color: #1e3c72;
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
        }

        .helper-link a:hover {
            text-decoration: underline;
        }

        /* 全局提示栏 (toast) */
        .toast-msg {
            background: #fef2f2;
            border-left: 5px solid #e11d48;
            padding: 12px 16px;
            border-radius: 20px;
            margin-bottom: 20px;
            font-size: 0.85rem;
            color: #991b1b;
            display: none;
        }

        .toast-msg.show {
            display: block;
        }

        .success-toast {
            background: #e6f7e6;
            border-left-color: #2e7d32;
            color: #1e4a2f;
        }

        /* 响应式 */
        @media (max-width: 550px) {
            body {
                padding: 16px 12px;
            }
            .form-panel {
                padding: 24px 20px 28px;
            }
            .tab-bar {
                padding: 0 16px;
            }
            .auth-header {
                padding: 28px 20px;
            }
            .auth-header h1 {
                font-size: 1.5rem;
            }
        }

        /* 额外 */
        .inline-hint {
            font-size: 0.7rem;
            color: #5b6e8c;
            margin-top: 4px;
            margin-left: 12px;
        }