/* ===== 登录/注册 大气增强样式 v3 ===== */

/* ---- 独立页：极光动态光晕 ---- */
.auth-visual-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    will-change: transform;
}

.auth-aurora-orb--gold {
    width: 360px;
    height: 360px;
    top: -8%;
    left: -6%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.55), transparent 70%);
    animation: maAuroraFloatA 14s ease-in-out infinite;
}

.auth-aurora-orb--blue {
    width: 420px;
    height: 420px;
    bottom: -12%;
    right: -8%;
    background: radial-gradient(circle, rgba(56, 120, 210, 0.5), transparent 70%);
    animation: maAuroraFloatB 18s ease-in-out infinite;
}

.auth-aurora-orb--violet {
    width: 280px;
    height: 280px;
    top: 40%;
    left: 52%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
    animation: maAuroraFloatC 16s ease-in-out infinite;
}

@keyframes maAuroraFloatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}

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

@keyframes maAuroraFloatC {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate(-50px, 20px) scale(1.05); opacity: 0.5; }
}

/* ---- 独立页：漂浮玻璃展示卡 ---- */
.auth-visual-showcase {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.auth-showcase-card {
    position: absolute;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    color: #fff;
}

.auth-showcase-card--main {
    top: 11%;
    right: 7%;
    width: 280px;
    padding: 1rem 1.1rem 1.15rem;
    transform: rotate(-3deg);
    animation: maShowcaseFloat 7s ease-in-out infinite;
}

@keyframes maShowcaseFloat {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-10px); }
}

.auth-showcase-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.auth-showcase-label {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
}

.auth-showcase-body {
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-showcase-id {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-showcase-avatar {
    width: 38px;
    height: 38px;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ma-gold, #C9A227), var(--ma-gold-light, #e8c547));
    color: var(--ma-navy-deep, #0f172a);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.auth-showcase-id-meta {
    flex: 1;
    min-width: 0;
}

.auth-showcase-id-meta strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-showcase-id-meta span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-showcase-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.18);
    color: #6ee7b8;
    border: 1px solid rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.auth-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.auth-showcase-stats > div {
    text-align: center;
}

.auth-showcase-stats strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ma-gold-light, #e8c547);
    font-variant-numeric: tabular-nums;
}

.auth-showcase-stats span {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.55);
}

.auth-showcase-progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-showcase-progress-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.auth-showcase-progress-bar span {
    display: block;
    height: 100%;
    width: 72%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ma-gold-light, #e8c547), var(--ma-gold, #C9A227));
}

.auth-showcase-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-showcase-progress-meta strong {
    color: var(--ma-gold-light, #e8c547);
    font-variant-numeric: tabular-nums;
}

.auth-showcase-card--float {
    bottom: 13%;
    right: 12%;
    width: 180px;
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transform: rotate(4deg);
    animation: maShowcaseFloatB 8s ease-in-out infinite;
}

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

.auth-showcase-card--float i {
    font-size: 1.35rem;
    color: var(--ma-gold-light, #e8c547);
    flex-shrink: 0;
}

.auth-showcase-card--float strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.auth-showcase-card--float span {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-showcase-chip {
    position: absolute;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ma-gold-light, #e8c547);
    font-size: 1.1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.auth-showcase-chip--a {
    top: 56%;
    right: 3%;
    animation: maChipFloat 6s ease-in-out infinite;
}

.auth-showcase-chip--b {
    top: 30%;
    right: 30%;
    animation: maChipFloat 7s ease-in-out 0.5s infinite;
}

.auth-showcase-chip--c {
    bottom: 7%;
    right: 38%;
    animation: maChipFloat 8s ease-in-out 1s infinite;
}

@keyframes maChipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---- 独立页：标题渐变闪光 ---- */
.auth-body-grand .auth-quick-visual-title em {
    font-style: normal;
    background: linear-gradient(135deg, #f5d76e 0%, var(--ma-gold-light, #e8c547) 50%, #f5d76e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: maTitleShimmer 4s linear infinite;
}

@keyframes maTitleShimmer {
    to { background-position: 200% center; }
}

/* ---- 独立页：特性卡 hover ---- */
.auth-body-grand .auth-quick-visual-features li {
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.auth-body-grand .auth-quick-visual-features li:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* ---- 响应式：独立页展示卡 ---- */
@media (max-width: 1199.98px) {
    .auth-showcase-card--main {
        width: 240px;
        right: 4%;
    }

    .auth-showcase-card--float {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .auth-visual-showcase {
        display: none;
    }

    .auth-aurora-orb--violet {
        display: none;
    }
}

/* ==================== 内嵌卡片大气增强 ==================== */

.auth-quick-card--premium {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem !important;
    border: 1px solid rgba(201, 162, 39, 0.18) !important;
    box-shadow: 0 16px 48px rgba(15, 30, 60, 0.12), 0 2px 8px rgba(15, 30, 60, 0.04) !important;
}

.auth-quick-card--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-quick-card--premium > *:not(.auth-card-aurora):not(.auth-card-accent-bar) {
    position: relative;
    z-index: 1;
}

/* ---- 内嵌卡片极光光晕 ---- */
.auth-card-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-card-aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.55;
}

.auth-card-aurora-orb--gold {
    width: 160px;
    height: 160px;
    top: 5%;
    right: 5%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.5), transparent 65%);
    animation: maCardAuroraGold 12s ease-in-out infinite;
}

.auth-card-aurora-orb--blue {
    width: 140px;
    height: 140px;
    bottom: 5%;
    left: 5%;
    background: radial-gradient(circle, rgba(56, 120, 210, 0.4), transparent 65%);
    animation: maCardAuroraBlue 15s ease-in-out infinite;
}

@keyframes maCardAuroraGold {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.06); }
}

@keyframes maCardAuroraBlue {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.08); }
}

/* ---- 顶部装饰条 ---- */
.auth-card-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ma-gold-light, #e8c547), var(--ma-gold, #C9A227), var(--ma-gold-light, #e8c547));
    background-size: 200% 100%;
    animation: maAccentShimmer 4s linear infinite;
    z-index: 1;
}

@keyframes maAccentShimmer {
    to { background-position: 200% center; }
}

/* ---- 内嵌卡片标题闪光 ---- */
.auth-grand-page--embed .auth-quick-title {
    position: relative;
    display: inline-block;
}

.auth-grand-page--embed .auth-quick-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--ma-gold, #C9A227), transparent);
    transition: width 0.5s ease;
}

.auth-grand-page--embed .auth-quick-card--premium:hover .auth-quick-title::after {
    width: 60%;
}

/* ---- 内嵌卡片输入框聚焦增强 ---- */
.auth-grand-page--embed .auth-quick-card--premium .auth-quick-input-box:focus-within {
    border-color: rgba(201, 162, 39, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

/* ---- 内嵌卡片提交按钮增强 ---- */
.auth-grand-page--embed .auth-quick-card--premium .auth-quick-submit {
    position: relative;
    overflow: hidden;
}

.auth-grand-page--embed .auth-quick-card--premium .auth-quick-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.auth-grand-page--embed .auth-quick-card--premium .auth-quick-submit:hover::before {
    left: 100%;
}

/* ---- 内嵌卡片 QR 按钮增强 ---- */
.auth-grand-page--embed .auth-quick-card--premium .auth-quick-qr {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.05));
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--ma-gold, #C9A227);
    transition: all 0.25s ease;
}

.auth-grand-page--embed .auth-quick-card--premium .auth-quick-qr:hover {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.1));
    border-color: rgba(201, 162, 39, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.2);
}

/* ---- 内嵌卡片切换链接增强 ---- */
.auth-grand-page--embed .auth-quick-card--premium .auth-quick-switch a {
    color: var(--ma-gold, #C9A227);
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

.auth-grand-page--embed .auth-quick-card--premium .auth-quick-switch a:hover {
    color: var(--ma-gold-light, #e8c547);
}

.auth-grand-page--embed .auth-quick-card--premium .auth-quick-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ma-gold, #C9A227);
    transition: width 0.3s ease;
}

.auth-grand-page--embed .auth-quick-card--premium .auth-quick-switch a:hover::after {
    width: 100%;
}

/* ---- 内嵌卡片密码强度计增强 ---- */
.auth-grand-page--embed .auth-quick-card--premium .auth-grand-strength {
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 30, 60, 0.08);
    overflow: hidden;
}

.auth-grand-page--embed .auth-quick-card--premium .auth-grand-strength span {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ma-gold, #C9A227), var(--ma-gold-light, #e8c547));
}

/* ---- 内嵌卡片信任徽章增强 ---- */
.auth-grand-page--embed .auth-quick-card--premium .auth-quick-trust {
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    padding-top: 0.85rem;
    margin-top: 0.85rem;
}

/* ---- 响应式 ---- */
@media (max-width: 767.98px) {
    .auth-card-aurora-orb {
        opacity: 0.3;
    }

    .auth-card-aurora-orb--gold {
        width: 120px;
        height: 120px;
    }

    .auth-card-aurora-orb--blue {
        width: 100px;
        height: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-aurora-orb,
    .auth-showcase-card--main,
    .auth-showcase-card--float,
    .auth-showcase-chip,
    .auth-body-grand .auth-quick-visual-title em,
    .auth-card-aurora-orb {
        animation: none !important;
    }

    .auth-card-accent-bar {
        animation: none !important;
    }
}
