/* ============================================
   特博云禾 - 消费者登录/注册样式
   依赖：shared/variables.css
   ============================================ */

/* ========== 页面容器 ========== */
.account-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #e8f5e9 0%, #f8f9f5 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 80px;  /* 防止内容被底部导航遮挡 */
}

/* ========== 卡片 ========== */
.account-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* 顶部装饰 */
.account-card .logo-area {
    text-align: center;
    margin-bottom: 20px;
}

.account-card .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 12px;
}

.account-card h2 {
    text-align: center;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 1.4rem;
}

.account-card .subtitle {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.account-card .forgot-link {
    margin-left: auto;
    color: #2d6a4f;
    text-decoration: none;
    font-size: 0.82rem;
}

.account-card .forgot-link:hover {
    text-decoration: underline;
}

/* ========== 表单组 ========== */
.account-card .form-group {
    margin-bottom: 18px;
    position: relative;  /* 为错误提示定位 */
}

.account-card .form-group .field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.account-card .form-group .field-label i {
    font-size: 0.9rem;
    color: #2d6a4f;
}

.account-card .form-group .field-label .emoji {
    font-size: 1rem;
}

/* 输入框通用样式 */
.account-card .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
    font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;  /* 统一字体 */
}

/* 密码框：用浏览器默认遮蔽，不改字体 */
.account-card .form-group input[type="password"] {
    font-size: 16px;
}

/* 输入框聚焦状态 */
.account-card .form-group input:focus {
    outline: none;
    border-color: #2d6a4f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45,106,79,0.06);
}

/* 错误状态 */
.account-card .form-group input.input-error {
    border-color: #dc3545;
    background-color: #fff9fa;
}

.account-card .form-group input.input-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220,53,69,0.1);
}

/* 占位符 */
.account-card .form-group input::placeholder {
    color: #c0c0c0;
    opacity: 1;
}

.account-card .form-group .field-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 6px;
}

.account-card .form-group .field-hint i {
    font-size: 0.65rem;
}

/* 错误提示 */
.account-card .form-group .field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-size: 0.73rem;
    margin-top: 6px;
    padding: 6px 8px;
    background: #fff9fa;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-card .form-group .field-error i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* 全局验证错误 */
.account-card .validation-error {
    background: #fff9fa;
    border: 1px solid #ffe3e6;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #dc3545;
    font-size: 0.85rem;
    animation: slideIn 0.3s ease;
}

.account-card .validation-error i {
    margin-right: 8px;
    color: #dc3545;
}

/* ========== 提交按钮 ========== */
.account-card .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.account-card .btn-submit:hover {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(45,106,79,0.3);
}

.account-card .btn-submit:active {
    transform: translateY(0);
}

/* ========== 底部链接 ========== */
.account-card .footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
}

.account-card .footer-links a {
    color: #2d6a4f;
    text-decoration: none;
    font-weight: 600;
}

.account-card .footer-links a:hover {
    text-decoration: underline;
}

/* ========== 条款 ========== */
.account-card .terms {
    text-align: center;
    font-size: 0.72rem;
    color: #bbb;
    margin-top: 16px;
    line-height: 1.5;
}

.account-card .terms a {
    color: #2d6a4f;
    text-decoration: none;
}

/* ========== 分隔线 ========== */
.account-card .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #ddd;
    font-size: 0.75rem;
}

.account-card .divider::before,
.account-card .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* ========== 补充说明 ========== */
.account-card .note {
    background: #f8faf8;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    font-size: 0.73rem;
    color: #888;
    margin-top: 16px;
    line-height: 1.6;
    border: 1px solid #eef5ef;
}

.account-card .note i {
    color: #2d6a4f;
    margin: 0 2px;
}

/* ========== 记住我 ========== */
.account-card .remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.account-card .remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2d6a4f;
}

/* 删除重复的第97-103行样式（下面的注释掉的部分） */
/*
.account-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #e8f5e9 0%, #f8f9f5 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 80px;
}
*/

/* 响应式调整 */
@media (max-width: 576px) {
    .account-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .account-card h2 {
        font-size: 1.3rem;
    }
    
    .account-card .form-group input {
        padding: 14px;  /* 移动端加大点击区域 */
    }
}