/**
 * 注册 / 找回密码 / 完善车场信息 共用页面样式
 * 与登录页(hplus login.css)随机大图背景风格保持一致
 */
html { height: 100%; }

body.reg-page {
    min-height: 100%;
    padding: 40px 16px 60px;
    color: #333;
    background: #18c8f6 url("../hplus/img/bg2.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    font-family: "open sans", "Helvetica Neue", "Microsoft YaHei", Helvetica, Arial, sans-serif;
}

.reg-wrap { width: 100%; max-width: 420px; margin: 4% auto 0; }

.reg-wrap-wide { max-width: 640px; }

/* ---------- 卡片 ---------- */
.reg-card {
    background: rgba(255, 255, 255, .96);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
    padding: 34px 34px 28px;
}

.reg-logo { text-align: center; margin-bottom: 6px; }
.reg-logo .logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1ab394 0%, #18c8f6 100%);
    color: #fff; font-size: 26px;
    box-shadow: 0 4px 14px rgba(26, 179, 148, .4);
}

.reg-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #2f4050;
    margin: 12px 0 4px;
}

.reg-subtitle { text-align: center; color: #93a1b0; font-size: 13px; margin-bottom: 18px; }

/* ---------- 步骤条 ---------- */
.reg-steps { display: flex; margin: 18px 0 22px; }
.reg-steps .step { flex: 1; text-align: center; position: relative; color: #b7c1cc; font-size: 12px; }
.reg-steps .step .dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-bottom: 4px;
    border-radius: 50%; background: #e8ecef; color: #98a6b3;
    font-size: 13px; font-weight: 600;
    position: relative; z-index: 2;
}
.reg-steps .step .line {
    position: absolute; top: 12px; left: calc(-50% + 13px); width: calc(100% - 26px);
    height: 2px; background: #e8ecef; z-index: 0;
}
.reg-steps .step.active { color: #1ab394; }
.reg-steps .step.active .dot { background: #1ab394; color: #fff; }
.reg-steps .step.active .line { background: #1ab394; }
.reg-steps .step.done .dot { background: #1ab394; color: #fff; }
.reg-steps .step.done .line { background: #1ab394; }
.reg-steps .step span.txt { position: relative; z-index: 1; background: transparent; }

/* ---------- 表单 ---------- */
.reg-form .form-group { position: relative; margin-bottom: 18px; }
.reg-form .input-icon {
    position: absolute; left: 12px; top: 10px; color: #b3bfc9; font-size: 15px; z-index: 2;
}
.reg-form .form-control {
    height: 42px;
    padding-left: 38px;
    padding-right: 40px;
    border: 1px solid #dde3e9;
    border-radius: 6px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.reg-form .form-control:focus {
    border-color: #1ab394;
    box-shadow: 0 0 0 3px rgba(26, 179, 148, .15);
}
.reg-form .form-control.error { border-color: #ed5565; }

/* 密码可见性切换 */
.reg-form .toggle-eye {
    position: absolute; right: 12px; top: 11px;
    color: #b3bfc9; cursor: pointer; z-index: 2;
}
.reg-form .toggle-eye:hover { color: #1ab394; }

/* ---------- 验证码行 ---------- */
.reg-code-group { display: flex; gap: 10px; }
.reg-code-group .form-control { flex: 1; }
.btn-send-code {
    height: 42px; min-width: 122px;
    border: 1px solid #1ab394;
    background: #fff; color: #1ab394;
    border-radius: 6px; font-size: 13px;
    transition: all .2s ease;
}
.btn-send-code:hover:not(:disabled) { background: #1ab394; color: #fff; }
.btn-send-code:disabled { border-color: #ccd5dd; color: #98a6b3; background: #f3f5f7; cursor: not-allowed; }

/* ---------- 密码强度 ---------- */
.pwd-strength { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pwd-strength .bars { display: flex; flex: 1; gap: 5px; }
.pwd-strength .bars i { display: block; height: 4px; flex: 1; border-radius: 2px; background: #e8ecef; transition: background .25s ease; }
.pwd-strength .bars i.s1 { background: #ed5565; }
.pwd-strength .bars i.s2 { background: #f8ac59; }
.pwd-strength .bars i.s3 { background: #1ab394; }
.pwd-strength .label { font-size: 12px; color: #93a1b0; min-width: 34px; text-align: right; }
.pwd-strength .label.c1 { color: #ed5565; }
.pwd-strength .label.c2 { color: #f8ac59; }
.pwd-strength .label.c3 { color: #1ab394; }

/* 字段提示 */
.field-tip { font-size: 12px; color: #93a1b0; margin-top: 6px; }

/* ---------- 主按钮 ---------- */
.btn-reg-primary {
    display: block;
    width: 100%; height: 44px;
    border: none; border-radius: 6px;
    background: linear-gradient(135deg, #1ab394 0%, #18c8f6 100%);
    background-size: 150% 150%;
    color: #fff; font-size: 16px; letter-spacing: 4px;
    transition: all .25s ease;
}
.btn-reg-primary:hover:not(:disabled) { background-position: 100% 100%; box-shadow: 0 6px 18px rgba(24, 200, 246, .4); color: #fff; }
.btn-reg-primary:disabled { opacity: .65; cursor: not-allowed; }

/* ---------- 底部链接 ---------- */
.reg-footer-links {
    margin-top: 18px; text-align: center; font-size: 13px; color: #8d9aa7;
}
.reg-footer-links a { color: #1ab394; }
.reg-footer-links a:hover { text-decoration: underline; }

/* ---------- 完善信息页(分组表单) ---------- */
.reg-group-title {
    display: flex; align-items: center;
    font-size: 14px; font-weight: 600; color: #2f4050;
    margin: 6px 0 14px;
}
.reg-group-title::before {
    content: ""; display: inline-block; width: 4px; height: 14px;
    border-radius: 2px; background: #1ab394; margin-right: 8px;
}
.reg-group { margin-bottom: 24px; }
.reg-form select.form-control { height: 42px; padding-left: 38px; color: #555; }

/* ---------- 结果页 ---------- */
.reg-result { text-align: center; padding: 12px 0 6px; }
.reg-result .icon-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 84px; border-radius: 50%; margin-bottom: 18px; font-size: 42px; color: #fff;
}
.reg-result .icon-circle.ok { background: linear-gradient(135deg, #1ab394, #23c6c8); box-shadow: 0 6px 20px rgba(26, 179, 148, .4); }
.reg-result .icon-circle.bad { background: linear-gradient(135deg, #ed5565, #f8ac59); box-shadow: 0 6px 20px rgba(237, 85, 101, .4); }
.reg-result h3 { font-size: 20px; color: #2f4050; margin: 0 0 8px; }
.reg-result p { color: #93a1b0; font-size: 14px; }
.reg-result .btn-reg-primary { max-width: 240px; margin: 22px auto 0; letter-spacing: 2px; }
.reg-result .btn-ghost {
    display: inline-block; margin-top: 12px; padding: 8px 22px;
    border: 1px solid #ccd5dd; border-radius: 6px; color: #6b7a87; font-size: 13px;
}
.reg-result .btn-ghost:hover { border-color: #1ab394; color: #1ab394; text-decoration: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
    body.reg-page { padding: 20px 12px 40px; }
    .reg-card { padding: 26px 20px 22px; }
    .btn-send-code { min-width: 104px; }
}
