/* 登录 / 注册页 — VIP绑定系统 */
:root {
    --auth-brand: #0f766e;
    --auth-brand-deep: #0d5c56;
    --auth-brand-mid: #14b8a6;
    --auth-ink: #14231f;
    --auth-muted: #5b6b66;
    --auth-line: rgba(15, 118, 110, .14);
    --auth-surface: rgba(255, 255, 255, .92);
    --auth-radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body.auth-body {
    min-height: 100vh;
    color: var(--auth-ink);
    font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(1200px 700px at 12% -10%, rgba(45, 212, 191, .35), transparent 55%),
        radial-gradient(900px 600px at 95% 10%, rgba(15, 118, 110, .28), transparent 50%),
        radial-gradient(800px 500px at 70% 110%, rgba(20, 184, 166, .18), transparent 45%),
        linear-gradient(160deg, #e7f5f2 0%, #f4f8f7 42%, #eef3f1 100%);
    position: relative;
    overflow-x: hidden;
}

body.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background-image:
        linear-gradient(rgba(15, 118, 110, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
}

.auth-panel {
    width: min(440px, 100%);
    background: var(--auth-surface);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: var(--auth-radius);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 18px 48px rgba(15, 61, 56, .1);
    padding: 40px 36px 32px;
    animation: authRise .55s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-panel.is-register {
    width: min(480px, 100%);
}

@keyframes authRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--auth-brand-mid), var(--auth-brand-deep));
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Outfit", "Noto Sans SC", sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .04em;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .28);
}

.auth-brand h1 {
    margin: 0;
    font-family: "Outfit", "Noto Sans SC", sans-serif;
    font-size: clamp(1.65rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
    color: var(--auth-ink);
}

.auth-brand p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth-form .layui-form-item {
    margin-bottom: 16px;
}

.auth-form .layui-input {
    height: 46px;
    line-height: 46px;
    border-radius: 12px;
    border-color: var(--auth-line);
    background: #fbfefd;
    padding: 0 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-form .layui-input:focus {
    border-color: rgba(15, 118, 110, .55) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .16);
    background: #fff;
}

.auth-form .auth-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334842;
}

.auth-actions {
    margin-top: 8px;
}

.auth-btn {
    height: 46px;
    line-height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-brand) 0%, var(--auth-brand-mid) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: .08em;
    width: 100%;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
}

.auth-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
    filter: brightness(.98);
}

.auth-captcha {
    display: flex;
    gap: 10px;
    align-items: center;
}
.auth-captcha .layui-input {
    flex: 1;
}
.auth-captcha img {
    width: 120px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--auth-line);
    background: #f4fbf9;
    cursor: pointer;
}
.auth-captcha-tip {
    margin: -8px 0 12px;
    font-size: 12px;
    color: var(--auth-muted);
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.auth-footer a:hover {
    border-bottom-color: rgba(15, 118, 110, .45);
}

.auth-hint {
    margin: -4px 0 14px;
    font-size: 12px;
    color: #7a8a85;
}

@media (max-width: 520px) {
    .auth-panel,
    .auth-panel.is-register {
        padding: 28px 20px 24px;
        border-radius: 14px;
    }
    .auth-brand {
        margin-bottom: 22px;
    }
}
