﻿/* 微信服务号注册 - 对齐主站管理员登录卡片风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-wrapper {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeIn .5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    background: linear-gradient(135deg, #014099 0%, #003077 100%);
    padding: 24px 28px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 对齐主站 auth-modal：白底卡片 + 顶部 Logo，无蓝色头 */
.login-wrapper.login-card-modal {
    max-width: 360px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.login-header-plain {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 22px 0;
    background: #fff;
}

.login-header-plain .brand-logo {
    height: 26px;
    width: auto;
    max-width: 100%;
    display: block;
}

.login-card-modal .login-body {
    padding: 14px 20px 12px;
}

.login-card-modal .login-tabs {
    margin-bottom: 14px;
}

.login-card-modal .login-tab {
    padding: 5px 0;
}

.login-card-modal .input-wrap .icon {
    width: 32px;
}

.login-card-modal .input-wrap .icon svg {
    width: 14px;
    height: 14px;
}

.login-card-modal .input-wrap input {
    height: 34px;
    font-size: 12px;
}

.login-card-modal .sms-btn {
    width: 90px;
    height: 36px;
    font-size: 11px;
}

.login-card-modal .login-btn {
    height: 38px;
    font-size: 13px;
}

.login-card-modal .login-footer {
    font-size: 11px;
    padding: 0 20px 14px;
}

.login-card-modal .reg-legal {
    margin: 2px 0 10px;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
    line-height: 0;
}

.login-header .logo .brand-logo {
    height: 32px;
    width: auto;
    max-width: 100%;
    display: block;
}

.login-header .logo svg {
    height: 32px;
    width: auto;
    max-width: 100%;
}

.login-header .corp {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.login-header .page-title {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.5px;
    line-height: 1.55;
    padding: 0 4px;
}

.login-body {
    padding: 20px 24px 14px;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 2px;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-radius: 5px;
    transition: all .2s;
    background: transparent;
    border: none;
    outline: none;
}

.login-tab.active {
    color: #014099;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* 两 Tab 等高：短信侧隐藏占位行保留空间，避免切换时卡片高度跳动 */
.login-card-modal .tab-balance-gate {
    visibility: hidden;
    pointer-events: none;
}

.login-card-modal .tab-balance-gate .captcha-img {
    display: block;
    box-sizing: border-box;
}

.login-card-modal .err-msg {
    min-height: 16px;
}

.fg { margin-bottom: 12px; }

.fg label {
    display: block;
    font-size: 12px;
    color: #444;
    margin-bottom: 4px;
    font-weight: 500;
}

.input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    transition: all .25s;
    background: #f8f9fb;
    overflow: hidden;
}

.input-wrap:focus-within {
    border-color: #014099;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1, 64, 153, 0.08);
}

.input-wrap .icon {
    width: 34px;
    text-align: center;
    color: #bbb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .25s;
}

.input-wrap:focus-within .icon { color: #014099; }

.input-wrap .icon svg {
    width: 15px;
    height: 15px;
}

.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    height: 36px;
    font-size: 13px;
    background: transparent;
    padding-right: 10px;
    color: #333;
    min-width: 0;
}

.input-wrap input::placeholder {
    color: #b0b0b0;
    font-size: 12px;
}

.pwd-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.pwd-toggle:hover,
.pwd-toggle.is-on {
    color: #014099;
}

.pwd-toggle svg {
    width: 16px;
    height: 16px;
}

.sms-row,
.captcha-row {
    display: flex;
    gap: 8px;
}

.sms-row .input-wrap,
.captcha-row .input-wrap { flex: 1; }

.captcha-img {
    width: 100px;
    height: 38px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #f8f9fb;
    object-fit: cover;
}

.login-card-modal .captcha-row { gap: 6px; }
.login-card-modal .captcha-img {
    width: 90px;
    height: 36px;
}

.sms-btn {
    width: 100px;
    height: 38px;
    background: #014099;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .25s;
    white-space: nowrap;
}

.sms-btn:hover {
    background: #003077;
    box-shadow: 0 4px 12px rgba(1, 64, 153, 0.25);
}

.sms-btn:disabled {
    background: #c0c0c0;
    cursor: not-allowed;
    box-shadow: none;
}

.reg-legal {
    margin: 4px 0 12px;
    font-size: 11px;
    line-height: 1.7;
    color: #888;
}

.reg-legal a {
    color: #014099;
    text-decoration: underline;
    font-weight: 500;
}

.reg-legal a:hover { text-decoration: underline; }

.login-btn {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #014099, #002a6e);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2px;
    transition: all .25s;
    letter-spacing: 2px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0155b8, #003077);
    box-shadow: 0 6px 20px rgba(1, 64, 153, 0.3);
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.err-msg {
    color: #d32f2f;
    font-size: 11px;
    margin: 0 0 8px;
    min-height: 16px;
}

.login-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 0 24px 18px;
}

.login-footer a {
    color: #014099;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover { text-decoration: underline; }

.login-footer .dot {
    color: #ddd;
    margin: 0 8px;
}

/* 免费注册：与登录深蓝同系，浅蓝底+描边，次级但不突兀 */
.register-cta {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 40px;
    margin-top: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #014099;
    background: #e8f0fa;
    border: 1.5px solid #014099;
    border-radius: 6px;
    box-shadow: none;
    box-sizing: border-box;
}
.register-cta:active {
    background: #d6e4f5;
    transform: translateY(1px);
}

.login-card-modal .register-cta {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
}

/* 已登录提示页 */
.loggedin-body {
    padding: 28px 20px 24px !important;
    text-align: center;
}
.loggedin-tip {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 22px;
    word-break: break-all;
}
.loggedin-link {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    margin-top: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #014099;
    background: #f5f7fa;
    border: 1px solid #d9e2ef;
    border-radius: 6px;
}
.loggedin-link-primary {
    color: #fff;
    background: linear-gradient(135deg, #014099 0%, #003077 100%);
    border-color: transparent;
    font-weight: 600;
}
.loggedin-link:active {
    opacity: 0.9;
}

.login-copy {
    text-align: center;
    font-size: 10px;
    color: #bbb;
    padding: 0 16px 14px;
    line-height: 1.5;
}

.login-copy a {
    color: #bbb;
    text-decoration: none;
}

.login-copy a:hover {
    color: #014099;
    text-decoration: underline;
}
