/* ============================================================
   登录 / 注册 / 找回密码 / 重置密码 — 现代婚礼风 UI
   配色参考婚礼纪：玫瑰红主色 + 腮红粉背景 + 白色卡片
   ============================================================ */

/* 背景：柔和腮红粉渐变 + 光斑 */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 16%, rgba(255,183,197,0.42) 0, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(255,208,178,0.45) 0, transparent 46%),
        radial-gradient(circle at 80% 10%, rgba(255,214,224,0.35) 0, transparent 36%),
        linear-gradient(135deg, #fff9f6 0%, #fff0f3 55%, #ffe9ee 100%);
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    z-index: 0;
    pointer-events: none;
}
.auth-blob.b1 { width: 420px; height: 420px; background: #ffd0da; top: -130px; left: -110px; opacity: .75; }
.auth-blob.b2 { width: 380px; height: 380px; background: #ffe0c4; bottom: -140px; right: -100px; opacity: .7; }
.auth-blob.b3 { width: 220px; height: 220px; background: #ffc4d1; bottom: 8%; left: 10%; opacity: .45; }
.auth-blob.b4 { width: 180px; height: 180px; background: #ffd8c2; top: 10%; right: 14%; opacity: .4; }

/* 漂浮的小装饰（囍 / 爱心） */
.auth-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    color: #ff96a9;
    opacity: .55;
    animation: floaty 7s ease-in-out infinite;
    user-select: none;
}
.auth-deco.d1 { top: 16%; left: 12%; font-size: 30px; font-family: 'STKaiti','KaiTi',serif; animation-delay: 0s; }
.auth-deco.d2 { bottom: 18%; right: 10%; font-size: 24px; animation-delay: -2.2s; color: #ffb08e; }
.auth-deco.d3 { top: 24%; right: 20%; font-size: 20px; animation-delay: -4s; }
.auth-deco.d4 { bottom: 26%; left: 18%; font-size: 22px; animation-delay: -3s; color: #ffb7c9; }

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(8deg); }
}

/* 主卡片 */
.auth-card {
    position: relative;
    z-index: 2;
    display: flex;
    width: 900px;
    max-width: 100%;
    min-height: 580px;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 30px 90px rgba(230, 62, 92, 0.16),
        0 6px 24px rgba(230, 62, 92, 0.08);
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 左侧品牌区 ===== */
.auth-brand {
    width: 390px;
    flex-shrink: 0;
    background: linear-gradient(165deg, #ff8598 0%, #ff5d7b 48%, #e8415f 100%);
    color: #fff;
    padding: 46px 42px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ab-xi-bg {
    position: absolute;
    right: -46px;
    bottom: -60px;
    font-size: 250px;
    line-height: 1;
    font-family: 'STKaiti', 'KaiTi', serif;
    color: rgba(255, 255, 255, 0.09);
    transform: rotate(-10deg);
    pointer-events: none;
}

.ab-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.16);
    pointer-events: none;
}
.ab-ring.r1 { width: 150px; height: 150px; top: -50px; right: -40px; }
.ab-ring.r2 { width: 90px; height: 90px; top: 30px; right: 60px; border-color: rgba(255,255,255,.1); }

.ab-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ab-logo-mark {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'STKaiti', 'KaiTi', serif;
    font-size: 26px;
    backdrop-filter: blur(4px);
}

.ab-logo-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ab-logo-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 1px;
    margin-top: 2px;
}

.ab-hero {
    margin-top: 70px;
    position: relative;
    z-index: 1;
}

.ab-hero h2 {
    font-family: 'STKaiti', 'KaiTi', serif;
    font-size: 32px;
    line-height: 1.6;
    font-weight: 700;
    letter-spacing: 3px;
}

.ab-hero p {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

.ab-features {
    list-style: none;
    margin-top: auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ab-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.95);
}

.ab-features .fi {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-features .fi svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* ===== 右侧表单区 ===== */
.auth-form-col {
    flex: 1;
    padding: 46px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 胶囊切换标签 */
.auth-tabs2 {
    display: flex;
    background: #f4f5f7;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 30px;
}

.auth-tabs2 a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: #8a8f9c;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 2px;
}

.auth-tabs2 a.active {
    background: #fff;
    color: #e8415f;
    box-shadow: 0 3px 12px rgba(232, 65, 95, 0.16);
}

.auth-title {
    font-size: 25px;
    font-weight: 700;
    color: #26222a;
    letter-spacing: 1px;
}

.auth-title .hl { color: #e8415f; }

.auth-subtitle {
    margin-top: 8px;
    font-size: 13.5px;
    color: #9aa0ab;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* 输入框（带图标） */
.auth-field {
    position: relative;
    margin-bottom: 16px;
}

.auth-field .lead-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #b9bec9;
    pointer-events: none;
    transition: fill 0.2s;
}

.auth-field input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 46px;
    border: 1.5px solid transparent;
    background: #f6f7f9;
    border-radius: 13px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.2s;
}

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

.auth-field input:focus {
    background: #fff;
    border-color: #ff5d7b;
    box-shadow: 0 0 0 4px rgba(255, 93, 123, 0.12);
}

.auth-field input:focus ~ .lead-icon,
.auth-field:focus-within .lead-icon { fill: #e8415f; }

/* 密码可见切换 */
.eye-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.eye-btn:hover { background: #f1f2f5; }

.eye-btn svg {
    width: 19px;
    height: 19px;
    fill: #b9bec9;
}

.eye-btn:hover svg { fill: #7c828e; }

/* 提交按钮 */
.btn-auth {
    display: block;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff7d94 0%, #ff5d7b 55%, #e8415f 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(232, 65, 95, 0.32);
    transition: all 0.25s;
    margin-top: 6px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(232, 65, 95, 0.42);
}

.btn-auth:active { transform: translateY(0); }

/* 表单底部链接 */
.auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 22px;
    font-size: 13px;
}

.auth-links a {
    color: #9aa0ab;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover { color: #e8415f; }

.auth-links a.primary { color: #e8415f; font-weight: 600; }

/* 提示条 */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.auth-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-alert.success {
    background: #f0fbf2;
    border: 1px solid #bfe8c8;
    color: #2e8b47;
}
.auth-alert.success svg { fill: #34a853; }

.auth-alert.error {
    background: #fff1f2;
    border: 1px solid #ffd0d6;
    color: #d63355;
}
.auth-alert.error svg { fill: #e8415f; }

/* 重置链接展示框 */
.auth-linkbox {
    background: linear-gradient(135deg, #fff5f7, #fff0e9);
    border: 1px solid #ffdbe2;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.auth-linkbox label {
    display: block;
    font-size: 12.5px;
    color: #e8415f;
    font-weight: 600;
    margin-bottom: 9px;
}

.auth-linkbox input {
    width: 100%;
    padding: 10px 12px;
    font-size: 12.5px;
    border: 1px solid #ffd4dc;
    border-radius: 10px;
    background: #fff;
    color: #555;
    margin-bottom: 12px;
    word-break: break-all;
    outline: none;
}

.auth-linkbox input:focus { border-color: #ff5d7b; }

.auth-linkbox a {
    display: block;
    text-align: center;
    padding: 11px 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7d94, #e8415f);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.auth-linkbox a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(232,65,95,.3); }

/* 注册关闭 / 结果页（图标 + 文案） */
.auth-result {
    text-align: center;
    padding: 14px 0 6px;
}

.auth-result .result-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-result .result-icon svg { width: 36px; height: 36px; fill: #fff; }

.auth-result .result-icon.ok  { background: linear-gradient(135deg, #6fd68b, #34a853); box-shadow: 0 12px 28px rgba(52,168,83,.3); }
.auth-result .result-icon.warn{ background: linear-gradient(135deg, #ffa4b1, #e8415f); box-shadow: 0 12px 28px rgba(232,65,95,.3); }

.auth-result h3 {
    font-size: 19px;
    color: #26222a;
    margin-bottom: 8px;
}

.auth-result p {
    font-size: 13.5px;
    color: #9aa0ab;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* 移动端适配 */
@media (max-width: 900px) {
    .auth-brand { display: none; }
    .auth-card { width: 100%; max-width: 470px; min-height: auto; }
    .auth-form-col { padding: 38px 30px; }
}

@media (max-width: 480px) {
    .auth-body { padding: 16px 12px; }
    .auth-form-col { padding: 32px 22px; }
    .auth-blob.b3, .auth-blob.b4, .auth-deco { display: none; }
}
