/* 用户端登录 / 注册页面样式 */
:root {
    --auth-bg: #f5f6fa;
    --auth-text: #1f2430;
    --auth-muted: #8b90a0;
    --auth-line: #eceef4;
    --auth-accent: #5b5bd6;
    --auth-accent-soft: #eef0ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(900px 420px at 50% -160px, #e9eaff 0%, rgba(233, 234, 255, 0) 70%), var(--auth-bg);
    color: var(--auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.auth-top {
    height: 64px;
    display: flex;
    align-items: center;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
}

.auth-brand:hover {
    color: var(--auth-text);
    text-decoration: none;
}

.auth-brand-logo {
    display: block;
    width: auto;
    height: 34px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    margin-left: auto;
    padding: 0 13px;
    border: 1px solid #e3e5ee;
    border-radius: 9px;
    background: #fff;
    color: #5f6473;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}

.auth-back:hover {
    border-color: #c9cbf5;
    background: #f8f8ff;
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 70px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 30px;
    border: 1px solid #eef0f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(31, 36, 48, .08);
}

.auth-head {
    margin-bottom: 24px;
    text-align: center;
}

.auth-head h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .2px;
}

.auth-head p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-msg {
    display: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-msg.is-error {
    display: block;
    border: 1px solid #ffe0da;
    background: #fff2f0;
    color: #d94a3d;
}

.auth-msg.is-success {
    display: block;
    border: 1px solid #d5f3e2;
    background: #eefaf2;
    color: #16a34a;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-field {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #e8eaf1;
    border-radius: 12px;
    background: #f7f8fb;
    transition: all .2s;
}

.auth-field:focus-within {
    border-color: #b9baf7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 91, 214, .08);
}

.auth-icon {
    flex: 0 0 18px;
    width: 18px;
    margin-right: 10px;
    color: #9aa0b0;
    font-size: 15px;
    text-align: center;
}

.auth-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    font-size: 14px;
}

.auth-field input::placeholder {
    color: #a8adbb;
}

.auth-field-captcha {
    padding-right: 6px;
}

.auth-field .captcha-img {
    flex: 0 0 auto;
    height: 38px;
    margin-left: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.auth-code-btn {
    flex: 0 0 auto;
    height: 32px;
    margin-left: 8px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s;
}

.auth-code-btn:hover:not(:disabled) {
    background: #e2e4ff;
}

.auth-code-btn:disabled {
    background: #f0f1f5;
    color: #a8adbb;
    cursor: not-allowed;
}

.auth-submit {
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6d6df0, #5b5bd6);
    box-shadow: 0 8px 18px rgba(91, 91, 214, .25);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all .2s;
}

.auth-submit:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(91, 91, 214, .32);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.auth-foot {
    margin: 20px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
}

.auth-foot a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-foot a:hover {
    text-decoration: underline;
}

.auth-foot-sep {
    margin: 0 8px;
    color: #d3d6e0;
}

.auth-footer {
    padding: 20px 0 24px;
    color: #9aa0ad;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 560px) {
    .auth-container {
        padding: 0 16px;
    }

    .auth-top {
        height: 58px;
    }

    .auth-brand {
        font-size: 16px;
    }

    .auth-brand-logo {
        height: 30px;
    }

    .auth-main {
        padding: 8px 16px 40px;
    }

    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .auth-head h1 {
        font-size: 21px;
    }
}
