/* 登录 / 注册 / 找回密码 */
:root {
    --auth-primary: #3280fc;
    --auth-primary-dark: #2563eb;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-border: #dbe7fb;
    --auth-bg: #f3f7ff;
}

body.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(50, 128, 252, 0.16), transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.12), transparent 36%),
        linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    color: var(--auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--auth-text) !important;
}

.auth-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
}

.auth-brand-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-brand-sub {
    font-size: 12px;
    color: var(--auth-muted);
}

.auth-top-links a {
    margin-left: 12px;
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px 40px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
    padding: 28px 28px 24px;
}

.auth-card h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
}

.auth-card .auth-desc {
    margin: 0 0 22px;
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.auth-form label .req {
    color: #ef4444;
    margin-left: 2px;
}

.auth-form .form-control {
    height: 44px;
    border-radius: 10px;
    border-color: #d7e3f8;
    box-shadow: none;
}

.auth-form .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(50, 128, 252, 0.15);
}

.auth-form .form-control.is-invalid {
    border-color: #ef4444;
    background: #fff8f8;
}

.auth-form .form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--auth-muted);
}

.auth-captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.auth-captcha-row .form-control {
    flex: 1;
}

.auth-captcha-row img {
    height: 44px;
    width: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d7e3f8;
    cursor: pointer;
}

.auth-captcha-row .btn {
    min-width: 140px;
    white-space: nowrap;
}

.auth-submit {
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-submit:hover,
.auth-submit:focus {
    background: var(--auth-primary-dark);
    border-color: var(--auth-primary-dark);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
}

.auth-links a {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-alert {
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 20px 14px;
        border-radius: 12px;
    }
    .auth-topbar {
        padding: 12px 14px;
    }
    .auth-brand img {
        width: 38px;
        height: 38px;
    }
    .auth-brand-title {
        font-size: 17px;
    }
    .auth-card h3 {
        font-size: 20px;
    }
    .auth-main {
        padding: 8px 12px 28px;
        align-items: flex-start;
    }
    .auth-captcha-row {
        flex-direction: column;
    }
    .auth-captcha-row img,
    .auth-captcha-row .btn {
        width: 100%;
        min-width: 0;
        height: 44px;
    }
    .auth-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
