/* ============================================================
   用户端 登录 / 注册
   ============================================================ */
:root {
    --ua-c: #ff5a1f;
    --ua-c2: #ff8a3d;
    --ua-ink: #1f2329;
    --ua-sub: #8a8f99;
    --ua-line: #eef0f3;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.ua-page {
    color: var(--ua-ink);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(520px 320px at 8% 0%, rgba(255, 138, 61, .16), transparent 70%),
        radial-gradient(460px 360px at 100% 100%, rgba(255, 90, 31, .10), transparent 70%),
        #f7f7fa;
    -webkit-text-size-adjust: 100%;
}

.ua-shell {
    width: 100%;
    max-width: 470px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 26px 18px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 品牌区 */
.ua-brand-panel { margin-bottom: 20px; }

.ua-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ua-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff8a3d, #ff4d1f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(255, 90, 31, .28);
    flex: 0 0 46px;
}

.ua-brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
}

.ua-brand-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--ua-sub);
}

.ua-hero,
.ua-brand-foot { display: none; }

/* 卡片 */
.ua-card {
    background: #fff;
    border-radius: 22px;
    padding: 26px 22px 22px;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 20px 50px rgba(31, 35, 41, .09);
}

.ua-card h1 {
    margin: 0 0 6px;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}

.ua-desc {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--ua-sub);
}

/* 表单 */
.ua-form { margin: 0; }

.ua-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 14px;
    margin-bottom: 12px;
    background: #f6f7f9;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ua-field:focus-within {
    background: #fff;
    border-color: rgba(255, 90, 31, .38);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .08);
}

.ua-field > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    stroke: #a4a9b1;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ua-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ua-ink);
    font-size: 16px;
    padding: 0;
}

.ua-field input::placeholder { color: #a9aeb6; }

.ua-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f6f7f9 inset;
    -webkit-text-fill-color: var(--ua-ink);
}

/* 显示/隐藏密码 */
.ua-eye {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a4a9b1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ua-eye svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ua-eye.is-on { color: var(--ua-c); }

/* 图形验证码 */
.ua-captcha { padding-right: 8px; }

.ua-captcha img {
    flex: 0 0 96px;
    width: 96px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    background: #eef0f3;
    cursor: pointer;
}

/* 短信验证码按钮 */
.ua-code-btn {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 90, 31, .10);
    color: var(--ua-c);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.ua-code-btn:disabled {
    color: #a9aeb6;
    background: #f0f1f3;
    cursor: default;
}

/* 提交 */
.ua-submit {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ua-c), var(--ua-c2));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 12px 24px rgba(255, 90, 31, .26);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.ua-submit:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(255, 90, 31, .22);
}

/* 链接 */
.ua-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--ua-sub);
}

.ua-links a {
    color: var(--ua-c);
    font-weight: 600;
    text-decoration: none;
}

.ua-links-sub {
    justify-content: center;
    margin-top: 12px;
    font-size: 12px;
}

.ua-links-sub a { color: var(--ua-sub); font-weight: 400; }

.ua-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #b3b8bf;
    letter-spacing: .3px;
}

/* 桌面端：左品牌右表单 */
/* 桌面端：居中卡片 */
@media (min-width: 860px) {
    body.ua-page {
        background:
            radial-gradient(620px 420px at 10% 0%, rgba(255, 138, 61, .16), transparent 70%),
            radial-gradient(560px 440px at 100% 100%, rgba(255, 90, 31, .10), transparent 70%),
            #f3f4f8;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 40px 20px;
    }

    .ua-shell {
        max-width: 470px;
        min-height: 0;
        padding: 0;
    }

    .ua-card {
        border-radius: 24px;
        padding: 34px 30px 28px;
        box-shadow: 0 26px 60px rgba(31, 35, 41, .12);
    }

    .ua-card h1 { font-size: 25px; }

    .ua-foot { display: block; }
}