/* ── 团员端认证页统一样式：入口 / 注册 / 重置密码 ──
   暖白底 + 半透明磨砂固定卡片，玫粉强调 #C13E6D / #8B4A6B */

html:has(.entry), body:has(.entry) {
    background:
        radial-gradient(1000px 520px at 50% -30%, rgba(255, 190, 214, .22) 0%, rgba(255, 190, 214, 0) 68%),
        #fbf7f4;
    background-attachment: fixed;
}

.entry { max-width: 400px; margin: 0 auto; padding: 26px 0 20px; color: #2c1b2e; }

/* 顶部 flash 消息 */
.container:has(.entry) .messages { max-width: 400px; margin: 8px auto 0; }
.container:has(.entry) .msg { padding: 9px 13px; border-radius: 10px; font-size: 13px; }
.entry-card .messages { margin: 2px 0 14px; }
.entry-card .msg { box-shadow: none; }

/* 品牌 */
.entry-brand { text-align: center; padding: 4px 0 20px; }
.entry-logo {
    width: 58px; height: 58px; margin: 0 auto 13px;
    display: grid; place-items: center; border-radius: 16px;
    background: linear-gradient(135deg, #ff6b8b 0%, #c13e6d 100%);
    color: #fff; font-size: 26px; font-weight: 800;
    box-shadow: 0 8px 20px rgba(193, 62, 109, .26);
}
.entry-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.entry-slogan { margin-top: 6px; font-size: 12.5px; color: #8b7e76; }

/* Tab（仅入口页） */
.entry-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    padding: 4px; margin-bottom: 12px;
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
}
.entry-tab {
    padding: 11px 0; border: 0; border-radius: 999px;
    background: transparent; color: #8b7e76;
    font: 500 15.5px inherit; cursor: pointer;
    transition: background .15s, color .15s;
}
.entry-tab.is-active {
    background: #fff; color: #c13e6d; font-weight: 600;
    box-shadow: 0 2px 10px rgba(193, 62, 109, .16);
}

/* 半透明固定卡片 */
.entry-card {
    width: 100%;
    padding: 26px 24px;
    background: rgba(255, 255, 255, .76);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(155, 95, 120, .16), 0 2px 6px rgba(155, 95, 120, .06);
}

.entry-card-title { font-size: 16.5px; font-weight: 680; text-align: center; margin-bottom: 5px; }
.entry-card-sub { font-size: 12.5px; line-height: 1.55; color: #8b7e76; text-align: center; margin-bottom: 18px; }

/* 面板 */
.entry-panel[hidden] { display: none; }
.entry-panel { animation: entry-fade .2s ease; }
@keyframes entry-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* 字段 */
.entry-field { position: relative; margin-bottom: 11px; }
.entry-field-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: #b8a6b0; pointer-events: none;
}
.entry-field-icon svg { display: block; width: 100%; height: 100%; }
.entry-input {
    width: 100%; height: 46px; padding: 0 14px !important;
    border: 1px solid #ecdfe6 !important; border-radius: 11px !important;
    background: rgba(255, 255, 255, .92) !important; color: #2c1b2e !important;
    font-size: 14px !important;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.entry-input.has-icon { padding-left: 38px !important; }
.entry-input::placeholder { color: #b7aab2; }
.entry-input:focus {
    outline: none; border-color: #c13e6d !important;
    box-shadow: 0 0 0 3px rgba(193, 62, 109, .12) !important;
    background: #fff !important;
}

/* 邮箱 + 获取验证码 行 */
.entry-row { display: flex; gap: 8px; margin-bottom: 11px; }
.entry-row .entry-field { flex: 1; margin-bottom: 0; }
.entry-btn-ghost {
    flex: none; height: 46px; padding: 0 14px; white-space: nowrap;
    border: 1px solid #e6d0da; border-radius: 11px;
    background: rgba(255, 255, 255, .7); color: #c13e6d;
    font: 600 13px inherit; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.entry-btn-ghost:hover:not(:disabled) { background: #fff; border-color: #c13e6d; }
.entry-btn-ghost:disabled { opacity: .5; cursor: default; }

.entry-hint { margin: -3px 2px 11px; font-size: 11.5px; line-height: 1.55; color: #a9707f; }
.entry-code-msg { font-size: 11.5px; line-height: 1.4; color: #8b7e76; }
.entry-code-msg:not(:empty) { margin: 4px 2px 2px; }

/* 主按钮 */
.entry-submit {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 46px; margin-top: 15px;
    border: 0; border-radius: 11px; cursor: pointer;
    background: linear-gradient(135deg, #ff6b8b 0%, #c13e6d 100%);
    color: #fff; font: 600 14.5px inherit; letter-spacing: .02em; text-decoration: none;
    box-shadow: 0 6px 16px rgba(193, 62, 109, .3);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.entry-submit:hover { filter: brightness(1.03); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(193, 62, 109, .36); }
.entry-submit:active { transform: translateY(0); }

/* 链接 */
.entry-links { display: flex; justify-content: space-between; margin-top: 13px; font-size: 13px; }
.entry-links-center { justify-content: center; gap: 4px; color: #8b7e76; }
.entry-links a { color: #c13e6d; text-decoration: none; }
.entry-links a:hover { text-decoration: underline; }

/* 已登录 */
.entry-signed { text-align: center; font-size: 14px; color: #6b5560; padding: 2px 0 4px; }
.entry-signed b {
    display: inline-block; margin-left: 3px; padding: 2px 9px;
    background: #fff0f5; color: #8b4a6b; border-radius: 999px; font-weight: 600;
}

/* 内联错误 */
.entry-error {
    margin-bottom: 11px; padding: 8px 12px;
    background: #fcebeb; color: #791f1f;
    border-radius: 9px; font-size: 13px; text-align: center;
}

/* 温馨提示（仅入口页） */
.entry-tips {
    margin-top: 15px; padding: 13px 16px;
    background: rgba(255, 245, 248, .7);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 226, 234, .9);
    border-radius: 15px;
}
.entry-tips-title { font-size: 13px; font-weight: 700; color: #8b4a6b; margin-bottom: 6px; }
.entry-tips ol { margin: 0; padding-left: 18px; }
.entry-tips li { font-size: 12.5px; line-height: 1.7; color: #8b7e76; }

@media (max-width: 480px) {
    .entry { padding-top: 18px; }
    .entry-brand { padding-bottom: 16px; }
}
