/* Modern Login & Register Theme - STABLE & SEPARATED */

:root {
    --primary-color: #ff4500;
    --primary-hover: #e63e00;
    --text-main: #1a202c;
    --text-grey: #4a5568;
    --text-light: #a0aec0;
    --bg-faint: #f7fafc;
    --border-color: #e2e8f0;
    --box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    /* 表单：占位/提示浅灰，已输入正文加深 */
    --form-value-color: #1e293b;
    --form-placeholder-color: #94a3af;
}

body.blue, body.bodybgblue { --primary-color: #1296db; --primary-hover: #1085c4; }
body.green, body.bodybggreen { --primary-color: #07c160; --primary-hover: #06ad56; }
body.red, body.bodybgred { --primary-color: #e6162d; --primary-hover: #cf1428; }
body.orange, body.bodybgorange { --primary-color: #ff4500; --primary-hover: #e63e00; }

body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6; color: var(--text-main);
    display: flex; flex-direction: column; min-height: 100vh;
    font-size: 13.5px;
}

/* Header（顶栏按 Logo 高度 ≥65px 留白，含 inc_head_log / 登录注册页） */
.mheader {
    background: #fff;
    border-bottom: 1px solid #edf2f7;
    padding: 14px 0;
    z-index: 100;
    box-sizing: border-box;
    min-height: 93px; /* 65px logo + 上下内边距 */
    display: flex;
    align-items: center;
}
.mhead {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
    min-height: 65px;
    box-sizing: border-box;
}
.mhead .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
.mhead .logo img {
    height: 65px;
    width: auto;
    max-width: min(280px, 55vw);
    object-fit: contain;
    vertical-align: middle;
}
.mhead .font { margin-left: 18px; padding-left: 18px; border-left: 1px solid #edf2f7; font-size: 17px; font-weight: 500; color: #2d3748; }
.mhead .tit { margin-left: auto; }
.mhead .tit a { color: var(--text-grey); text-decoration: none; font-size: 14px; }

/* -------------------------------------------------------------------------- */
/*  LOGIN SECTION (Standard classes)                                            */
/* -------------------------------------------------------------------------- */
.signupform { flex: 1; display: flex; align-items: center; justify-content: center; padding: 34px 20px; }
/* 登录/注册：表单卡片水平居中（无左侧配图） */
.auth-split {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 16px;
    box-sizing: border-box;
}

.agile_info { background: #fff !important; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.06); border: 1px solid #e9eef4; width: 420px; max-width: 100%; margin: 0 auto; overflow: hidden; }
/* 机构注册字段多，表单适当加宽 */
.agile_info--store { width: 100%; max-width: 560px; min-width: 0; }
@media (max-width: 760px) {
    .agile_info--store { max-width: 100%; }
}
.login-content--store {
    padding: 22px 32px 20px;
}
@media (max-width: 760px) {
    .login-content--store { padding: 22px 20px 18px; }
}

.login-tabs { display: flex; background: #fff !important; border-bottom: 1px solid #edf2f7; }
.login-tabs__item {
    flex: 1;
    position: relative;
    padding: 16px 0;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-grey);
    font-size: 16px;
    transition: all 0.2s;
}
.login-tabs__item::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.2s;
}
.login-tabs__item.active { color: var(--primary-color); font-weight: 600; }
.login-tabs__item.active::after { width: 48px; }
.login-tabs span.login-tabs__item { cursor: default; }
.login-tabs--steps .login-tabs__item.active::after { width: min(72px, 55%); }

.login-content {
    padding: 30px 45px 22px;
    min-height: 238px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #fff !important;
}
.login-content form { display: flex; flex-direction: column; width: 100%; }

/* REFINED INPUTS FOR LOGIN */
.input-wrap {
    background: #fff; border: 1.5px solid #edf2f7; border-radius: 8px;
    height: 44px; display: flex; align-items: center; transition: all 0.2s;
    margin-bottom: 18px; width: 100%; box-sizing: border-box;
}
.input-wrap:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.input-wrap__ico { padding-left: 15px; color: #cbd5e0; display: flex; align-items: center; }
.input-wrap__input {
    border: none !important; background: transparent !important; padding: 0 12px !important;
    height: 100% !important; min-height: 0 !important; flex: 1 !important; font-size: 13.5px !important;
    line-height: normal !important; outline: none !important; color: var(--form-value-color) !important; width: 0 !important;
    box-sizing: border-box !important;
}
.input-wrap__input::placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 1;
}
.input-wrap__input::-webkit-input-placeholder {
    color: var(--form-placeholder-color) !important;
}
.input-wrap__input::-moz-placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 1;
}
.input-wrap__input:-ms-input-placeholder {
    color: var(--form-placeholder-color) !important;
}

/* 验证码 + 获取按钮：固定高度，避免继承 body 行高/全局 input 样式把整块撑高 */
.sms-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 18px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    background: #fff;
    border: 1.5px solid #edf2f7;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sms-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.sms-group .input-wrap {
    flex: 1;
    min-width: 0;
    min-height: 0;
    margin-bottom: 0;
    height: 44px;
    max-height: 44px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.sms-group .input-wrap:focus-within {
    border: none;
    box-shadow: none;
}
.sms-group .input-wrap__input {
    height: 100% !important;
    min-height: 0 !important;
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    color: var(--form-value-color) !important;
}
.sms-group .input-wrap__input::placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 1;
}
.sms-group .input-wrap__input::-webkit-input-placeholder {
    color: var(--form-placeholder-color) !important;
}
.sms-group .input-wrap__input::-moz-placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 1;
}
.sms-group .input-wrap__input:-ms-input-placeholder {
    color: var(--form-placeholder-color) !important;
}
.sms-group .input-wrap__ico {
    align-self: center;
    display: flex;
    align-items: center;
}
.sms-btn {
    flex-shrink: 0;
    align-self: stretch;
    min-width: 108px;
    max-width: 38%;
    padding: 0 12px;
    margin: 0;
    border: none;
    border-left: 1.5px solid #edf2f7;
    border-radius: 0;
    background: #f7fafc;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sms-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--primary-color) 10%, #fff); }
.sms-btn:disabled { opacity: 0.55; cursor: not-allowed; color: var(--text-grey); }

/* 短信页人机验证：不占「输入框」视觉，间距与表单项一致 */
.login-gate-wrap { margin-bottom: 18px; width: 100%; }

.login-options--sms { justify-content: flex-end; }

.login-options { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 25px; font-size: 13px; }
.login-options label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--form-placeholder-color);
}
.login-options a { color: var(--text-grey); text-decoration: none; }

.login-submit {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    height: auto;
    padding: 10px 16px;
    line-height: 1.35;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.login-submit:hover { background: var(--primary-hover); }

/* SOCIAL ROW FOR LOGIN */
.login-social-row { background: #fff !important; padding: 18px 45px; border-top: 1px solid #edf2f7; display: flex; justify-content: space-between; align-items: center; }
.social-group { display: flex; align-items: center; gap: 12px; }
.social-label { font-size: 12.5px; color: var(--text-light); }
.social-list { display: flex; gap: 10px; }
.social-item { width: 34px; height: 34px; border-radius: 50%; display: flex !important; align-items: center !important; justify-content: center !important; color: #fff; cursor: pointer; transition: 0.2s; }
.social-item:hover { opacity: 0.8; }
.social-item svg { width: 17px !important; height: 17px !important; }
.reg-link a { color: var(--primary-color); font-size: 13.5px; text-decoration: none; }

/* -------------------------------------------------------------------------- */
/*  REGISTER SECTION (.re-) - KEPT AS NARROW REDESIGN                          */
/* -------------------------------------------------------------------------- */
.re-container { width: 620px; background: #fff; border-radius: 12px; box-shadow: var(--box-shadow); margin: 40px auto; overflow: hidden; }
.re-step { display: flex; background: #fff; padding: 25px 0; border-bottom: 1px solid #edf2f7; counter-reset: rstep; }
.re-step__item { flex: 1; text-align: center; position: relative; color: var(--text-light); font-size: 12.5px; text-decoration: none; }
.re-step__item::after { content: ''; position: absolute; top: 12px; right: -50%; width: 100%; height: 1.5px; background: #edf2f7; z-index: 1; }
.re-step__item:last-child::after { display: none; }
.re-step__item::before { counter-increment: rstep; content: counter(rstep); width: 24px; height: 24px; border-radius: 50%; background: #edf2f7; display: flex; align-items: center; justify-content: center; z-index: 2; position: relative; margin: 0 auto; color: var(--text-grey); font-size: 11px; font-weight: 600; }
.re-step__item.active::before { background: var(--primary-color); color: #fff; }
.re-step__item.active { color: var(--primary-color); }
.re-step__item span { display: block; margin-top: 8px; }

.re-section { padding: 40px; border-bottom: 1px solid #f7fafc; }
.re-section:nth-of-type(even) { background: #fafbfc; }
.re-section__title { font-size: 16px; font-weight: 500; margin-bottom: 25px; color: #1a202c; display: flex; align-items: center; gap: 10px; }
.re-section__title::before { content: ''; width: 4px; height: 16px; background: var(--primary-color); border-radius: 2px; }

.re-group { display: flex; align-items: flex-start; margin-bottom: 18px; gap: 15px; }
.re-label { width: 100px; font-size: 13.5px; color: #4a5568; flex-shrink: 0; text-align: left; padding-top: 14px; }
.re-label font { color: var(--primary-color); margin-right: 4px; }
.re-wrap { flex: 1; min-width: 0; } 

.re-select {
    width: 100%; height: 46px; border: 1.5px solid #edf2f7; border-radius: 8px; padding: 0 10px; font-size: 13.5px;
    color: var(--form-placeholder-color);
    outline: none; background: #fff; cursor: pointer;
}
.re-select option { color: var(--form-value-color); }
.re-select:focus { border-color: var(--primary-color); }

.re-sms-box { display: flex; gap: 10px; }
.re-sms-btn { height: 46px; padding: 0 15px; background: #fff; border: 1.5px solid #edf2f7; border-radius: 8px; font-size: 12.5px; color: #4a5568; cursor: pointer; white-space: nowrap; transition: 0.2s; }
.re-sms-btn:hover:not(:disabled) { border-color: var(--primary-color); color: var(--primary-color); }

.re-submit-row { padding: 40px; text-align: center; }
.re-submit-row .btn-submit { width: 300px; height: 48px; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; color: #fff; background: var(--primary-color); }

.re-xieyi-box { padding: 40px; border-top: 1px solid #edf2f7; }
.re-xieyi-txt { background: #fff; border: 1px solid #edf2f3; border-radius: 8px; height: 140px; overflow-y: auto; padding: 20px; font-size: 12.5px; color: #718096; line-height: 1.8; }

.re-choice { display: flex; gap: 30px; padding: 50px 40px; }
.re-card { flex: 1; background: #fff; border: 1.5px solid #edf2f7; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; text-decoration: none; color: inherit; transition: 0.3s; }
.re-card:hover { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: var(--box-shadow); }
.re-card__ico { width: 48px; height: 48px; background: #fff5f0; color: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.re-card__tit { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--primary-color); }

.footer { padding: 32px 0; text-align: center; font-size: 12.5px; color: #a0aec0; }
.footer a {
    color: #8fa0b5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.footer a:hover {
    color: var(--text-grey);
    border-bottom-color: #c7d2e0;
}
[hidden] { display: none !important; }
.pwd-toggle { width: 44px; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #cbd5e0; flex-shrink: 0; }
.pwd-toggle svg { width: 16px !important; height: 16px !important; }

@media (max-width: 980px){
    .mhead { padding: 0 12px; }
    .mheader { padding: 12px 0; min-height: 89px; }
    .mhead .logo img { max-width: min(220px, 70vw); }
}

/* ========== 找回密码（与登录页同壳：agile_info + login-tabs + input-wrap） ========== */
.login-tabs--steps .login-tabs__item {
    cursor: default;
    pointer-events: none;
    font-size: 16px;
    padding: 15px 8px;
    line-height: 1.35;
}
.login-lead {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--text-grey);
    line-height: 1.55;
}
.login-lead--title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
}
.login-content--solo {
    padding-top: 28px;
    border-radius: 12px 12px 0 0;
}
.login-content .fp-field {
    margin-bottom: 18px;
}
.login-content .fp-field .input-wrap,
.login-content .fp-field .sms-group {
    margin-bottom: 0;
}
.login-content .fp-field .ma-tip {
    margin-top: 2px;
    margin-bottom: 0;
    min-height: 0;
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.35;
}
.login-content .fp-field .ma-tip:empty {
    display: none;
}
.login-content .fp-field .ma-tip.is-error {
    color: #dc2626;
}
.login-content .fp-field .ma-tip.is-ok {
    color: #0f9a6e;
}
.login-notice {
    font-size: 13px;
    color: var(--text-grey);
    line-height: 1.6;
    padding: 14px 16px;
    background: var(--bg-faint);
    border-radius: 8px;
    border: 1px solid #edf2f7;
    margin-bottom: 18px;
    box-sizing: border-box;
}
.login-notice strong {
    color: var(--text-main);
    font-weight: 600;
}
.login-notice-stack > * + * {
    margin-top: 8px;
}
.login-static {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid #edf2f7;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13.5px;
    color: var(--text-main);
    margin-bottom: 18px;
    box-sizing: border-box;
}
a.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}
.login-submit.login-submit--secondary {
    margin-top: 12px;
    background: #64748b !important;
}
.login-submit.login-submit--secondary:hover {
    background: #475569 !important;
}
