/* 登录 / 注册页 */
body.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: #f6f7fb;
    overflow-x: hidden;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    text-align: center;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 18px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 26px 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
    text-align: left;
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    letter-spacing: -.3px;
}

.auth-sub {
    margin: 0 0 18px;
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.7;
}

.auth-err {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .2);
    color: #b91c1c;
    font-size: 12.5px;
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.field {
    display: block;
    margin-bottom: 13px;
}

.field > span {
    display: block;
    font-size: 11.5px;
    color: var(--ink-3);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fafbfe;
    border-radius: 11px;
    padding: 11px 12px;
    font-size: 13.5px;
    color: var(--ink);
    outline: 0;
    font-family: inherit;
    transition: .16s;
}

.field input:focus {
    border-color: rgba(79, 70, 229, .45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .09);
}

.check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--ink-2);
    margin: 4px 0 16px;
    cursor: pointer;
    user-select: none;
}

.check input { accent-color: var(--accent); width: 14px; height: 14px; }

.auth-go {
    width: 100%;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(79, 70, 229, .26);
    font-family: inherit;
    transition: .16s;
}
.auth-go:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(79, 70, 229, .32); }
.auth-go:active { transform: translateY(0) scale(.99); }

.auth-switch {
    margin-top: 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-3);
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-back {
    display: inline-block;
    margin-top: 18px;
    font-size: 12px;
    color: var(--ink-3);
    text-decoration: none;
}
.auth-back:hover { color: var(--accent); }
