/* 登录 / 注册 — 深色玫瑰主题，与佳缘 / 我的 / VIP 等模块统一 */
body.auth-rose-page {
    background: #0f0a0e !important;
    color: rgba(255, 255, 255, 0.88);
    -webkit-tap-highlight-color: transparent;
}

body.auth-rose-page .auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(28px + env(safe-area-inset-top, 0px)) 16px calc(28px + env(safe-area-inset-bottom, 0px));
}

body.auth-rose-page .auth-card {
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

body.auth-rose-page .auth-card .header {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    position: relative;
}

/* 避免 shop-rose-theme 顶栏规则影响卡片内布局 */
body.auth-rose-page .header + div {
    padding-top: 0 !important;
}

body.auth-rose-page .auth-header {
    padding: 20px 24px 10px;
    text-align: center;
}

body.auth-rose-page .auth-subtitle {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

body.auth-rose-page .auth-form {
    padding: 12px 24px 10px;
}

body.auth-rose-page .auth-form .form-group > .form-control {
    width: 100%;
    display: block;
}

body.auth-rose-page .auth-form .form-control {
    height: calc(2.2em + 1rem + 2px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    text-align: left !important;
}

body.auth-rose-page .auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

body.auth-rose-page .auth-form .input-group .get-code.is-disabled,
body.auth-rose-page .auth-form .input-group .get-code:disabled {
    opacity: 0.45;
    pointer-events: none;
}

body.auth-rose-page .auth-form .input-group .get-code {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

body.auth-rose-page .auth-form .form-control:focus {
    border-color: rgba(244, 114, 182, 0.55);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
}

/* 密碼顯示切換 */
body.auth-rose-page .auth-pwd-wrap {
    position: relative;
}

body.auth-rose-page .auth-pwd-wrap .auth-pwd-input,
body.auth-rose-page .auth-pwd-wrap .form-control {
    padding-right: 46px !important;
}

body.auth-rose-page .auth-pwd-toggle,
body.pwd-page.shop-rose-theme .auth-pwd-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 100%;
    min-height: 44px;
    border: none;
    background: transparent;
    color: rgba(244, 114, 182, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}

body.auth-rose-page .auth-pwd-toggle:active,
body.pwd-page.shop-rose-theme .auth-pwd-toggle:active {
    color: #f472b6;
    opacity: 0.85;
}

body.auth-rose-page .auth-pwd-toggle .auth-pwd-icon,
body.pwd-page.shop-rose-theme .auth-pwd-toggle .auth-pwd-icon {
    display: block;
    flex-shrink: 0;
}

body.auth-rose-page .auth-pwd-toggle .auth-pwd-icon--hide,
body.pwd-page.shop-rose-theme .auth-pwd-toggle .auth-pwd-icon--hide {
    display: none;
}

body.auth-rose-page .auth-pwd-toggle.is-visible .auth-pwd-icon--show,
body.pwd-page.shop-rose-theme .auth-pwd-toggle.is-visible .auth-pwd-icon--show {
    display: none;
}

body.auth-rose-page .auth-pwd-toggle.is-visible .auth-pwd-icon--hide,
body.pwd-page.shop-rose-theme .auth-pwd-toggle.is-visible .auth-pwd-icon--hide {
    display: block;
}

body.pwd-page.shop-rose-theme .pwd-input-wrap .pwd-input.has-pwd-toggle {
    padding-right: 44px;
}

body.pwd-page.shop-rose-theme .pwd-input-wrap .auth-pwd-toggle {
    left: auto;
    transform: none;
}

/* 浏览器自动填充用户名时会强制浅色底，此处统一为深色 */
body.auth-rose-page .auth-form .form-control:-webkit-autofill,
body.auth-rose-page .auth-form .form-control:-webkit-autofill:hover,
body.auth-rose-page .auth-form .form-control:-webkit-autofill:focus,
body.auth-rose-page .auth-form .form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.28) inset !important;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.28) inset !important;
    transition: background-color 99999s ease-out 0s;
}

body.auth-rose-page .auth-form .form-control:-webkit-autofill:focus {
    border-color: rgba(244, 114, 182, 0.55) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.38) inset, 0 0 0 3px rgba(236, 72, 153, 0.18) !important;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.38) inset, 0 0 0 3px rgba(236, 72, 153, 0.18) !important;
}

body.auth-rose-page .auth-footer {
    padding: 8px 24px 22px;
}

body.auth-rose-page .auth-remember {
    margin: 0;
}

body.auth-rose-page .auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 10px;
    min-height: 44px;
}

body.auth-rose-page .auth-forget-link {
    flex-shrink: 0;
    color: #f9a8d4 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 4px;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}

body.auth-rose-page .auth-forget-link:active {
    color: #f472b6 !important;
    opacity: 0.9;
}

body.auth-rose-page .auth-remember__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

body.auth-rose-page .auth-remember__input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #f472b6;
    flex-shrink: 0;
}

body.auth-rose-page .auth-btn {
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #f472b6, #db2777) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
    font-weight: 700;
}

body.auth-rose-page .auth-btn:active {
    opacity: 0.92;
    transform: scale(0.99);
}

/* 注册引导 — login_no */
body.auth-rose-page .register-text {
    margin: 14px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.auth-rose-page .register-text .register-muted {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

body.auth-rose-page .register-text .register-cta {
    color: #f9a8d4;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    display: inline-block;
    margin-left: 4px;
    animation: authCtaPulse 2.2s ease-in-out infinite;
    transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
}

body.auth-rose-page .register-text:hover .register-cta {
    color: #f472b6;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.4);
    transform: translateY(-1px);
}

/* 注册引导 — login */
body.auth-rose-page .register-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

body.auth-rose-page .register-links .register-cta {
    color: #f9a8d4 !important;
    font-weight: 700;
    animation: authCtaPulse 2.2s ease-in-out infinite;
    transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
}

body.auth-rose-page .register-links .register-cta:hover {
    color: #f472b6 !important;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.4);
    transform: translateY(-1px);
}

body.auth-rose-page .auth-link {
    color: rgba(255, 255, 255, 0.55) !important;
}

@keyframes authCtaPulse {
    0%, 100% {
        opacity: .92;
        text-shadow: 0 0 0 rgba(244, 114, 182, 0);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(244, 114, 182, 0.3);
    }
}

body.auth-rose-page .site-legal {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
    word-break: break-word;
}

body.auth-rose-page .site-legal a {
    color: rgba(255, 255, 255, 0.48);
    text-decoration: none;
}

body.auth-rose-page .site-legal a:hover {
    color: #f9a8d4;
}

/* 语言切换按钮 */
body.auth-rose-page .lang-switch-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

body.auth-rose-page .lang-switch-btn__cur {
    color: rgba(255, 255, 255, 0.75);
}

/* 注册页性别选择 */
body.auth-rose-page .reg-gender-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

body.auth-rose-page .reg-gender-opt {
    flex: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    padding: 10px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

body.auth-rose-page .reg-gender-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

body.auth-rose-page .reg-gender-opt.active--female {
    border-color: rgba(244, 114, 182, 0.65);
    background: rgba(219, 39, 119, 0.18);
    color: #f9a8d4;
}

body.auth-rose-page .reg-gender-opt.active--male {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
}

/* 品牌标题 — 玫瑰渐变 */
body.auth-rose-page .auth-brand-text,
body.auth-rose-page .auth-brand-char {
    background: linear-gradient(118deg, #fce7f3 0%, #f472b6 32%, #db2777 55%, #9f3d5c 82%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #f472b6;
    -webkit-text-fill-color: transparent;
}

body.auth-rose-page .auth-brand-sep {
    background: linear-gradient(180deg, #f9a8d4, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: #f472b6;
    -webkit-text-fill-color: transparent;
}

/* 生日：年 / 月 / 日 下拉，避免原生 date 与占位符重叠 */
body.auth-rose-page .reg-birthday-row {
    display: flex;
    gap: 8px;
}

body.auth-rose-page .reg-bday-part {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.35);
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.45)' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    -webkit-appearance: none;
}

body.auth-rose-page .reg-bday-part.has-value {
    color: #fff;
}

body.auth-rose-page .reg-bday-part option {
    color: #111;
    background: #fff;
}

body.auth-rose-page .auth-brand-line {
    background: linear-gradient(90deg, #9f3d5c 0%, #db2777 50%, #f472b6 100%);
    box-shadow: 0 2px 10px rgba(219, 39, 119, 0.35);
}

