/* 启明白 2026 登录 / 注册页样式（独立静态页共用） */
:root {
    --p: #1BAF76;
    --pd: #0F8B62;
    --ink: #12312A;
    --body: #4B5563;
    --muted: #8A94A3;
    --border: #E3E8E6;
    --surface: #F5F8F7;
    --danger: #F0564A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--surface);
    color: var(--body);
    -webkit-font-smoothing: antialiased;
}

/* ---------- 布局 ---------- */
.auth-page {
    display: flex;
    min-height: 100vh;
}

/* 左侧品牌区 */
.auth-brand {
    flex: 0 0 48%;
    max-width: 640px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background: linear-gradient(150deg, #159a6b 0%, #0f8b62 55%, #0a6e4e 100%);
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.auth-brand::after {
    content: "";
    position: absolute;
    left: -100px;
    bottom: -150px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.auth-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #fff;
    color: var(--pd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.auth-logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
}

.auth-logo-text em {
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: .75;
    margin-top: 2px;
}

.auth-headline {
    font-size: 34px;
    line-height: 1.36;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.auth-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .86);
    max-width: 430px;
}

.auth-points {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 13px;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
}

.auth-points i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 12px;
    flex: 0 0 auto;
}

.auth-brand-foot {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.7;
}

/* 右侧表单区 */
.auth-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 50, 40, .08);
    padding: 36px 34px 30px;
}

.auth-title {
    font-size: 24px;
    color: var(--ink);
    font-weight: 700;
}

.auth-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 26px;
}

/* ---------- 表单 ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--body);
    font-weight: 600;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.form-control::placeholder {
    color: #a9b3b0;
}

.form-control:focus {
    outline: none;
    border-color: var(--p);
    box-shadow: 0 0 0 3px rgba(27, 175, 118, .14);
}

.verify-code-group {
    display: flex;
    gap: 10px;
}

.verify-code-input {
    flex: 1;
    min-width: 0;
}

.get-code-btn {
    flex: 0 0 120px;
    height: 46px;
    padding: 0 6px;
    border: 1px solid var(--p);
    border-radius: 10px;
    background: rgba(27, 175, 118, .08);
    color: var(--pd);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s ease;
}

.get-code-btn:hover:not(:disabled) {
    background: var(--p);
    color: #fff;
}

.get-code-btn:disabled {
    background: #f0f2f1;
    border-color: var(--border);
    color: var(--muted);
    cursor: not-allowed;
}

.btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #1BAF76, #0F8B62);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: filter .16s ease, transform .08s ease;
}

.btn:hover:not(:disabled) {
    filter: brightness(1.04);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.btn-ghost {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--surface);
    filter: none;
}

.auth-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.auth-link-muted {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.auth-link-muted:hover {
    color: var(--pd);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-back {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.auth-back:hover {
    color: var(--pd);
}

.auth-copyright {
    margin-top: 22px;
    font-size: 12px;
    color: var(--muted);
}

.error-message {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: var(--danger);
}

.loading {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 860px) {
    .auth-brand {
        display: none;
    }

    .auth-page {
        background: linear-gradient(150deg, #159a6b 0%, #0f8b62 100%);
    }

    .auth-panel {
        padding: 28px 16px;
    }

    .auth-card {
        padding: 28px 22px 24px;
        border-radius: 14px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
    }

    .auth-copyright {
        color: rgba(255, 255, 255, .72);
    }
}

@media screen and (max-width: 380px) {
    .get-code-btn {
        flex-basis: 104px;
        font-size: 12px;
    }
}
