/* ============================================================
   wwwroot/assets/css/modules/farmer-account.css
   云禾管家 - 注册/登录页面样式
   ============================================================ */

/* 注册页面容器 */
.register-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 20px 120px;
}

/* 内容区域 - 底部导航留白 */
.content-wrapper {
    padding-bottom: 120px;
    min-height: 100vh;
}

/* 顶部Logo区域 */
.register-header {
    text-align: center;
    margin-bottom: 28px;
}

/* 农场Logo图标（??/??） */
.register-logo {
    font-size: 48px;
    margin-bottom: 8px;
}

/* 页面标题 */
.register-title {
    font-weight: 700;
    color: #2d6a4f;
    margin-bottom: 4px;
}

/* 页面副标题 */
.register-sub {
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
}

/* 表单大输入框 */
.register-form .form-control-lg {
    height: 48px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    padding: 0 16px;
}

/* 输入框聚焦态 */
.register-form .form-control-lg:focus {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

/* 表单分区（账号信息/农场信息） */
.form-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

/* 分区标题 */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

/* 提交按钮 */
.btn-farmer-submit {
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: #2d6a4f;
    border: none;
    color: #fff;
    height: 50px;
}

/* 提交按钮悬停 */
.btn-farmer-submit:hover {
    background: #1e4a36;
}

.sms-code-row, .captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.sms-code-row input, .captcha-row input {
    flex: 1;
    text-transform: uppercase;
}
.captcha-img {
    height: 44px;
    cursor: pointer;
    border-radius: 4px;
}
.field-error-msg {
    display: none;
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 4px;
}
.validation-summary-errors {
    background: #fff3cd;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.farmer-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}

/* ========== 独立底部导航 ========== */
.farmer-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 6px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.farmer-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 0.68rem;
    gap: 2px;
    flex: 1;
}
.farmer-bottom-nav .nav-item i {
    font-size: 1.2rem;
}
.farmer-bottom-nav .nav-item:hover {
    color: #2d6a4f;
}

/* 备案信息 */
.footer-icp {
    text-align: center;
    padding: 8px 0 70px;
    font-size: 0.7rem;
    color: #bbb;
    line-height: 1.8;
}
.footer-icp a {
    color: #bbb;
    text-decoration: none;
}

/* 页面容器 */
.register-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 20px 120px;
}

/* 整体容器 */
.register-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px 100px;
    min-height: 100vh;
}

/* 头部 */
.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-logo {
    font-size: 56px;
    margin-bottom: 12px;
    display: block;
}

.register-title {
    font-size: 24px;
    font-weight: bold;
    color: #E67E22;
    margin-bottom: 6px;
}

.register-sub {
    font-size: 14px;
    color: #999;
}

/* 表单卡片 */
.register-form {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #F0F0F0;
}

.form-section {
    background: #fff;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #E67E22;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F5F0E8;
}

/* 输入框 */
.register-form .form-control,
.register-form .form-control-lg {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #E0E8E0;
    font-size: 15px;
    padding: 0 14px;
    background: #FAFDFA;
}

.register-form .form-control:focus,
.register-form .form-control-lg:focus {
    border-color: #E67E22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
    background: #fff;
}

/* 验证码 */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
    text-transform: uppercase;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #E0E8E0;
}

.captcha-img {
    width: 110px;
    height: 46px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: contain;
    border: 1px solid #E0E8E0;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.captcha-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.captcha-hint a {
    color: #E67E22;
    text-decoration: none;
}

/* 错误提示 */
.field-error-msg {
    font-size: 12px;
    color: #E53935;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-error-msg i {
    font-size: 12px;
}

.validation-summary-errors {
    background: #FFF5F5;
    border: 1px solid #FFCDD2;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #E53935;
    margin-bottom: 16px;
}

/* 记住我 */
.form-check-input:checked {
    background-color: #E67E22;
    border-color: #E67E22;
}

/* 提交按钮 */
.btn-farmer-submit {
    border-radius: 22px;
    font-size: 16px;
    font-weight: 600;
    background: #E67E22;
    border: none;
    color: #fff;
    height: 46px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-farmer-submit:hover {
    background: #D8751E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-farmer-submit:disabled {
    background: #F0A860;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 底部链接 */
.register-form .text-center a {
    text-decoration: none;
    font-size: 14px;
}

.register-form .text-success {
    color: #E67E22 !important;
}

.register-form .text-muted {
    color: #999 !important;
}

/* 桌面端适配 */
@media (min-width: 768px) {
    .register-page {
        padding: 48px 20px 100px;
    }

    .register-form {
        padding: 28px;
    }

    .register-title {
        font-size: 28px;
    }
}