/* ============================================================
   情侣小站 · 登录 / 注册页样式
   ============================================================ */

:root {
    --pink: #ff8fb8;
    --pink-deep: #f2648f;
    --purple: #a68bff;
    --ink: #4a3a4a;
    --muted: #a596a5;
    --line: #f2e4ef;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    padding: 28px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #ffeef5 0%, #f1f1ff 48%, #f8eaff 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 背景光斑 */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(72px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}

.blob.b1 { width: 360px; height: 360px; background: #ffc2d9; top: -130px; left: -110px; animation: drift1 16s ease-in-out infinite; }
.blob.b2 { width: 300px; height: 300px; background: #cfd4ff; bottom: -120px; right: -90px; animation: drift2 18s ease-in-out infinite; }
.blob.b3 { width: 220px; height: 220px; background: #e6ccff; top: 45%; right: 12%; animation: drift1 21s ease-in-out infinite reverse; }

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(26px, 34px) scale(1.08); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, -24px) scale(1.1); }
}

/* 卡片 */
.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; }

.auth-card {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    padding: 38px 32px 32px;
    box-shadow: 0 24px 60px rgba(180, 140, 180, .25), 0 2px 0 rgba(255, 255, 255, .8) inset;
    animation: cardIn .55s cubic-bezier(.22, 1, .36, 1);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-heart {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffb3cf, #b9a5ff);
    box-shadow: 0 10px 24px rgba(242, 100, 143, .32);
    animation: beat 2.6s ease-in-out infinite;
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    12%      { transform: scale(1.1); }
    24%      { transform: scale(1); }
    36%      { transform: scale(1.06); }
    48%      { transform: scale(1); }
}

.auth-heart svg { width: 28px; height: 28px; fill: #fff; }

.auth-title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ink);
}

.auth-sub {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 26px;
    letter-spacing: .5px;
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #8b7a8b;
    margin-bottom: 7px;
    letter-spacing: .4px;
}

.field input {
    width: 100%;
    padding: 13px 15px;
    font-size: 14.5px;
    color: var(--ink);
    background: #fffdfe;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input::placeholder { color: #cbbccb; }

.field input:focus {
    border-color: var(--pink);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 143, 184, .16);
}

.field .tip { font-size: 11.5px; color: #bcabbc; margin-top: 6px; }

.btn-main {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #ff9ec4, #a68bff);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, opacity .18s;
    box-shadow: 0 10px 24px rgba(166, 139, 255, .28);
}

.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(166, 139, 255, .36); }
.btn-main:active { transform: translateY(0); }
.btn-main:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-alt {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-alt a { color: var(--pink-deep); text-decoration: none; font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.alert {
    border-radius: 13px;
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.alert.err { background: #fff2f5; color: #c0392b; border: 1px solid #ffd8e0; }
.alert.ok  { background: #f1fff6; color: #1e824c; border: 1px solid #c9f0d9; }
.alert.info{ background: #f5f3ff; color: #6d5bd0; border: 1px solid #e3ddff; }

.auth-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #bcaec0;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.role-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    background: #f5f0ff;
    color: #8b74e0;
    border: 1px solid #e6dcff;
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .auth-card { padding: 30px 22px 26px; border-radius: 22px; }
    .auth-title { font-size: 19px; }
}
