/* ===== 登录注册页面样式 ===== */

.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0fdf4 50%, #fef3c7 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Tab切换 */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #f3f4f6;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: #3b82f6;
}

.tab-btn.active {
    color: #3b82f6;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
}

/* Tab内容 */
.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* 表单 */
.login-form .form-group {
    margin-bottom: 18px;
}

.login-form .form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 500;
}

.login-form .form-group .hint {
    color: #9ca3af;
    font-weight: normal;
    font-size: 12px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fafafa;
}

.login-form input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-agree {
    margin-bottom: 20px;
}

.form-agree .check-label {
    line-height: 1.6;
}

.link-text {
    color: #3b82f6;
    text-decoration: none;
}

.link-text:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 6px;
}

.form-msg {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}

.form-msg.success {
    color: #16a34a;
}

.form-msg.error {
    color: #dc2626;
}
