/* 这页原来没吃全站基础重置的行高，保持原样 */
html { line-height: normal; }

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
body {
    background: #F2F2F2;
    color: #3a3a3a;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh; margin: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.auth-container { width: 100%; max-width: 380px; }

/* Logo */
.site-logo {
    text-align: center;
    margin-bottom: 36px;
}
.site-logo-text {
    font-size: 28px; font-weight: 900;
    letter-spacing: 0.1em; color: #333;
}
.site-logo-sub {
    font-size: 13px; color: #888;
    margin-top: 6px; letter-spacing: 0.04em;
}

/* 表单卡片 */
.auth-card {
    background: #F2F2F2;
    border-radius: 22px;
    box-shadow: 8px 8px 18px #d5d5d5, -8px -8px 18px #ffffff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 26px 22px;
}

/* Tab 切换（注册 / 登录） */
.auth-tabs {
    display: flex; gap: 0;
    margin-bottom: 22px;
    background: #EAEAEA; border-radius: 12px;
    padding: 4px;
    box-shadow: inset 3px 3px 6px #c8c8c8, inset -3px -3px 6px #ffffff;
}
.auth-tab {
    flex: 1; text-align: center; padding: 9px 0;
    font-size: 13px; font-weight: 700; color: #aaa;
    cursor: pointer; border-radius: 9px;
    transition: all 0.25s;
    user-select: none;
}
.auth-tab.active {
    background: #F2F2F2; color: #FF5A5F;
    box-shadow: 4px 4px 8px #d5d5d5, -3px -3px 7px #ffffff;
}

/* Inputs（.auth-input-field 已迁到 shared.css） */
.auth-input-group { margin-bottom: 16px; }
.auth-input-label {
    display: block; font-size: 10px;
    font-weight: 800; color: #888;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Submit 按钮 */
.auth-submit {
    width: 100%; padding: 14px;
    margin-top: 10px;
    font-size: 15px; font-weight: 800; letter-spacing: 0.06em;
    color: white; background: #FF5A5F;
    border: none; border-radius: 14px;
    box-shadow:
        8px 8px 20px #d4a0a2,
        -4px -4px 12px #ffffff,
        inset 0 1px 0 rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.15s;
}
.auth-submit:active {
    box-shadow: inset 3px 3px 8px rgba(0,0,0,0.25);
    transform: scale(0.98);
}
.auth-submit:disabled {
    background: #ccc; box-shadow: none; cursor: not-allowed;
}

/* 消息提示 */
.auth-msg {
    margin-top: 14px;
    padding: 10px 14px; border-radius: 11px;
    font-size: 12px; text-align: center; font-weight: 600;
}
.auth-msg.success {
    background: #ECFDF5; color: #059669;
    border: 1px solid rgba(16,185,129,0.2);
}
.auth-msg.error {
    background: #FEF2F2; color: #DC2626;
    border: 1px solid rgba(220,38,38,0.2);
}

/* 底部说明 */
.auth-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 11px; color: #aaa;
    line-height: 1.6;
}

/* 卡片内"先逛雪屋"纯文字链接 */
.auth-link {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 4px 0;
    font-size: 13px; font-weight: 600; color: #aaa;
    text-decoration: none;
    text-align: center;
    background: transparent;
    transition: color .15s;
}
.auth-link:active {
    color: #777;
}

/* 返回雪屋市场按钮 */
.auth-back-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 13px; font-weight: 700; color: #aaa;
    text-decoration: none;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .15s;
    font-family: inherit;
}
.auth-back-btn:active { color: #777; }
