/* 珍爱相亲 - 登录注册页 */
.auth-page {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-page.login-page::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,182,193,.5), transparent 70%);
    pointer-events: none;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 16px 0 0 16px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-size: 18px;
    text-decoration: none;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a2b5f;
    padding: 24px 28px 32px;
}

.auth-form { padding: 0 28px; }

.auth-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.auth-input {
    width: 100%;
    height: 52px;
    border: none;
    background: #fff;
    border-radius: 26px;
    padding: 0 44px 0 20px;
    font-size: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    outline: none;
    box-sizing: border-box;
}

.auth-input::placeholder { color: #ccc; }

.auth-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: none;
    line-height: 20px;
    text-align: center;
}

.auth-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 26px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    transition: all .2s;
}

.auth-btn.disabled {
    background: #e0e0e0;
    color: #fff;
}

.auth-btn.active {
    background: linear-gradient(135deg, #7b8cff, #9b87ff);
    color: #fff;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    font-size: 14px;
}

.auth-links a { color: #7b8cff; text-decoration: none; }

.auth-footer {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.8;
    padding: 0 20px;
    box-sizing: border-box;
}

.auth-footer a { color: #7b8cff; text-decoration: none; }

/* 欢迎页 */
.welcome-page {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55)),
        url('/static/images/welcome-bg.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 60px 24px 30px;
    box-sizing: border-box;
}

.welcome-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, #a78bfa, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.welcome-slogan {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.welcome-sub {
    font-size: 14px;
    opacity: .9;
    line-height: 1.6;
}

.welcome-actions {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.welcome-btn {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 14px;
}

.welcome-btn.primary {
    background: linear-gradient(135deg, #7b8cff, #9b87ff);
    color: #fff;
}

.welcome-btn.secondary {
    background: rgba(255,255,255,.85);
    color: #7b8cff;
}

.welcome-footer {
    font-size: 12px;
    opacity: .85;
    line-height: 1.8;
}

.welcome-footer a { color: #b8c4ff; text-decoration: none; }

.profile-account {
    font-size: 13px;
    opacity: .8;
    margin-top: 4px;
}

.btn-logout {
    display: block;
    margin: 12px;
    text-align: center;
    color: #ef4444;
    font-size: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 12px 16px 0;
    font-size: 12px;
}
.lang-switch .lang-item { color: #999; }
.lang-switch .lang-item.active { color: #ec4899; font-weight: 600; }
.lang-switch .lang-sep { color: #ddd; user-select: none; }
