/* ==========================================================================
   留歌主题 - 登录/注册/找回密码页面 v2.1.0
   设计语言与全站 UI Kit 对齐：留歌蓝 #3b6ff5、浅色干净风、柔和阴影
   结构：lg-auth-* 为页面骨架；lar-* 为表单内部类名（兼容 login-form.php）
   ========================================================================== */

/* ==================== 0. 页面基底 ==================== */
html, body.lg-auth-body {
    height: auto;
    min-height: 100%;
    margin: 0;
}

body.lg-auth-body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ==================== 1. 全屏容器与背景 ==================== */
.lg-auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 88% -12%, rgba(59,111,245,.12), transparent 62%),
        radial-gradient(900px 480px at -8% 112%, rgba(59,111,245,.08), transparent 58%),
        linear-gradient(180deg, #f7f9fd 0%, #eef2f9 100%);
    background-size: cover;
    background-position: center;
}

/* 两团柔和装饰光斑（低饱和，克制） */
.lg-auth-page::before,
.lg-auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.lg-auth-page::before {
    width: 420px; height: 420px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(59,111,245,.14), transparent 68%);
    animation: lg-float-a 16s ease-in-out infinite;
}
.lg-auth-page::after {
    width: 380px; height: 380px;
    bottom: -140px; left: -100px;
    background: radial-gradient(circle, rgba(91,141,239,.12), transparent 68%);
    animation: lg-float-b 19s ease-in-out infinite;
}
@keyframes lg-float-a {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(-36px,30px); }
}
@keyframes lg-float-b {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(30px,-26px); }
}

/* 图片背景模式：白色柔化遮罩保证卡片可读 */
.lg-auth-page.lg-bg-img {
    background-size: cover !important;
    background-position: center !important;
}
.lg-auth-page.lg-bg-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(247,249,253,.82), rgba(238,242,249,.88));
    z-index: 0;
}

/* 暗色模式 */
[data-bs-theme="dark"] .lg-auth-page {
    background:
        radial-gradient(1100px 520px at 88% -12%, rgba(59,111,245,.16), transparent 62%),
        radial-gradient(900px 480px at -8% 112%, rgba(59,111,245,.10), transparent 58%),
        linear-gradient(180deg, #12161f 0%, #171d2b 100%);
}
[data-bs-theme="dark"] .lg-auth-page.lg-bg-img::before {
    background: linear-gradient(180deg, rgba(18,22,31,.86), rgba(23,29,43,.9));
}

/* ==================== 2. 返回首页 ==================== */
.lg-auth-back {
    position: fixed;
    top: 22px;
    left: 24px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: #475569 !important;
    background: rgba(255,255,255,.85);
    border: 1px solid #e5e9f0;
    border-radius: 999px;
    text-decoration: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(17,24,39,.06);
    transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.lg-auth-back:hover {
    color: #3b6ff5 !important;
    border-color: rgba(59,111,245,.4);
    box-shadow: 0 4px 14px rgba(59,111,245,.16);
    transform: translateX(-2px);
}
[data-bs-theme="dark"] .lg-auth-back {
    color: #cbd5e1 !important;
    background: rgba(30,37,52,.85);
    border-color: #2c3448;
}
[data-bs-theme="dark"] .lg-auth-back:hover { color: #93c5fd !important; border-color: rgba(96,165,250,.45); }

/* ==================== 3. 双栏外壳 ==================== */
.lg-auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(17,24,39,.04),
        0 24px 64px -16px rgba(17,24,39,.14),
        0 8px 20px -8px rgba(17,24,39,.06);
    animation: lg-pop .5s cubic-bezier(.2,.75,.3,1);
}
@keyframes lg-pop {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
[data-bs-theme="dark"] .lg-auth-shell {
    background: #1a2030;
    box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 64px -16px rgba(0,0,0,.5);
}

/* ==================== 4. 左侧品牌区（留歌蓝） ==================== */
.lg-auth-brand {
    position: relative;
    padding: 48px 42px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(160deg, #3b6ff5 0%, #2f5fe0 58%, #2551c6 100%);
    overflow: hidden;
}
/* 装饰：右上大圆环 + 左下光斑，简洁不花哨 */
.lg-auth-brand::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    top: -130px; right: -120px;
    border-radius: 50%;
    border: 54px solid rgba(255,255,255,.08);
    pointer-events: none;
}
.lg-auth-brand::after {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    bottom: -110px; left: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 66%);
    pointer-events: none;
}
.lg-auth-brand-inner { position: relative; z-index: 1; width: 100%; }

.lg-auth-brand-logo { display: inline-block; margin-bottom: 24px; line-height: 0; }
.lg-auth-brand-logo img {
    max-height: 48px;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.lg-auth-brand-name {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}

.lg-auth-brand-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -.2px;
}
.lg-auth-brand-desc {
    font-size: .88rem;
    line-height: 1.75;
    color: rgba(255,255,255,.82);
    margin: 0 0 30px;
}

.lg-auth-features { list-style: none; margin: 0; padding: 0; }
.lg-auth-features li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 0;
}
.lg-auth-feature-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: .95rem;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.12);
    transition: background .25s, transform .25s;
}
.lg-auth-features li:hover .lg-auth-feature-icon {
    background: rgba(255,255,255,.24);
    transform: translateY(-2px);
}
.lg-auth-feature-text { display: flex; flex-direction: column; }
.lg-auth-feature-text strong { font-size: .9rem; font-weight: 700; color: #fff; }
.lg-auth-feature-text em { font-style: normal; font-size: .76rem; color: rgba(255,255,255,.72); margin-top: 2px; }

/* ==================== 5. 右侧表单区 ==================== */
.lg-auth-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 48px;
}
[data-bs-theme="dark"] .lg-auth-panel { background: #1a2030; }

.lg-auth-card { width: 100%; max-width: 380px; }

/* 头部 */
.lg-auth-head { text-align: center; margin-bottom: 20px; }
.lg-auth-mobile-logo { display: none; line-height: 0; }
.lg-auth-mobile-logo img { max-height: 42px; max-width: 170px; object-fit: contain; }
.lg-auth-title {
    font-size: 1.42rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -.2px;
    color: #1e293b;
}
[data-bs-theme="dark"] .lg-auth-title { color: #f1f5f9; }
.lg-auth-subtitle { font-size: .84rem; color: #64748b; margin: 0; }
[data-bs-theme="dark"] .lg-auth-subtitle { color: #94a3b8; }

/* ==================== 6. 页签 ==================== */
.lg-auth-tabs {
    display: flex;
    gap: 6px;
    background: #f1f4f9;
    border-radius: 11px;
    padding: 4px;
    margin-bottom: 22px;
}
[data-bs-theme="dark"] .lg-auth-tabs { background: #232b3e; }
.lg-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all .2s;
}
[data-bs-theme="dark"] .lg-auth-tab { color: #94a3b8; }
.lg-auth-tab:hover { color: #3b6ff5; }
.lg-auth-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #3b6ff5, #5b8def);
    box-shadow: 0 4px 12px rgba(59,111,245,.32);
}
.lg-auth-tab i { font-size: .82rem; }

/* ==================== 7. 表单通用 ==================== */
.lg-auth-content .form-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
[data-bs-theme="dark"] .lg-auth-content .form-label { color: #cbd5e1; }

.lg-auth-content .text-muted { color: #94a3b8 !important; font-size: .74rem; }
.lg-auth-content .mb-3 { margin-bottom: 15px; }
.lg-auth-content .mb-1 { margin-bottom: 4px; }

.lg-auth-content .form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: .88rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-shadow: none !important;
}
[data-bs-theme="dark"] .lg-auth-content .form-control {
    color: #e5e9f0;
    background: #222a3c;
    border-color: #313b52;
}
.lg-auth-content .form-control::placeholder { color: #94a3b8; }
.lg-auth-content .form-control:focus {
    background: #fff;
    border-color: #3b6ff5 !important;
    box-shadow: 0 0 0 3.5px rgba(59,111,245,.14) !important;
    outline: none;
}
[data-bs-theme="dark"] .lg-auth-content .form-control:focus {
    background: #222a3c;
    border-color: #5b8def !important;
    box-shadow: 0 0 0 3.5px rgba(91,141,239,.18) !important;
}

/* 带图标输入框 */
.lg-auth-content .lar-input-wrap { position: relative; }
.lg-auth-content .lar-input-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .78rem;
    color: #3b6ff5 !important;
    pointer-events: none;
    z-index: 2;
    background: rgba(59,111,245,.10);
    transition: background .25s, color .25s, box-shadow .25s;
}
.lg-auth-content .lar-input-wrap:focus-within .lar-input-icon {
    color: #fff !important;
    background: linear-gradient(135deg, #3b6ff5, #5b8def);
    box-shadow: 0 3px 10px rgba(59,111,245,.32);
}
[data-bs-theme="dark"] .lg-auth-content .lar-input-icon { color: #93c5fd !important; background: rgba(96,165,250,.14); }
[data-bs-theme="dark"] .lg-auth-content .lar-input-wrap:focus-within .lar-input-icon { color: #fff !important; }
.lg-auth-content .lar-input-wrap .form-control {
    padding-left: 45px;
    padding-right: 42px;
}

/* 密码眼睛 */
.lg-auth-content .lar-pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    font-size: .82rem;
    z-index: 3;
    transition: color .2s, background .2s;
}
.lg-auth-content .lar-pwd-toggle:hover { color: #3b6ff5; background: rgba(59,111,245,.10); }
[data-bs-theme="dark"] .lg-auth-content .lar-pwd-toggle:hover { color: #93c5fd; background: rgba(96,165,250,.12); }

/* ==================== 8. 分组标题（注册） ==================== */
.lg-auth-content .lar-field-group {
    border: 1px solid #eef1f6;
    border-radius: 12px;
    padding: 15px 15px 2px;
    margin-bottom: 15px;
    background: #fbfcfe;
}
[data-bs-theme="dark"] .lg-auth-content .lar-field-group {
    border-color: #2c3448;
    background: rgba(255,255,255,.02);
}
.lg-auth-content .lar-field-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    color: #3b6ff5;
    margin-bottom: 12px;
}
[data-bs-theme="dark"] .lg-auth-content .lar-field-group-title { color: #93c5fd; }
.lg-auth-content .lar-field-group-title i { font-size: .8rem; }

/* ==================== 9. 验证码 input-group ==================== */
.lg-auth-content .input-group { display: flex; gap: 8px; }
.lg-auth-content .input-group .form-control { flex: 1; border-radius: 10px !important; }
.lg-auth-content .input-group .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    height: 44px;
    padding: 0 15px;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 10px !important;
    border: 1.5px solid rgba(59,111,245,.55);
    color: #3b6ff5;
    background: rgba(59,111,245,.06);
    cursor: pointer;
    transition: all .2s;
}
.lg-auth-content .input-group .btn:hover { background: #3b6ff5; color: #fff; border-color: #3b6ff5; }
.lg-auth-content .input-group .btn:disabled { opacity: .55; cursor: not-allowed; }
[data-bs-theme="dark"] .lg-auth-content .input-group .btn {
    background: rgba(96,165,250,.08);
    color: #93c5fd;
    border-color: rgba(96,165,250,.45);
}

/* 图形验证码图片 */
.lg-auth-content .input-group img.captcha-img,
.lg-auth-content .input-group img {
    height: 44px;
    border-radius: 9px;
    cursor: pointer;
    border: 1.5px solid #e5e9f0;
}

/* ==================== 10. 密码强度 ==================== */
.lg-auth-content .lar-pwd-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.lg-auth-content .lar-pwd-bar { display: inline-flex; gap: 4px; }
.lg-auth-content .lar-pwd-bar i {
    display: inline-block;
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: #e5e9f0;
    transition: background .25s;
}
.lg-auth-content .lar-pwd-bar.lv1 i:nth-child(1) { background: #ef4444; }
.lg-auth-content .lar-pwd-bar.lv2 i:nth-child(-n+2) { background: #f59e0b; }
.lg-auth-content .lar-pwd-bar.lv3 i { background: #10b981; }
.lg-auth-content .lar-pwd-label { font-size: .72rem; color: #94a3b8; }

/* ==================== 11. 记住我 / 协议勾选 ==================== */
.lg-auth-content .lar-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 14px;
}
.lg-auth-content .lar-forgot-link { font-size: .78rem; color: #3b6ff5; text-decoration: none !important; }
.lg-auth-content .lar-forgot-link:hover { text-decoration: underline !important; }

.lg-auth-content .form-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.lg-auth-content .form-check-input { width: 15px; height: 15px; accent-color: #3b6ff5; cursor: pointer; margin: 0; }
.lg-auth-content .form-check-label { font-size: .8rem; color: #64748b; cursor: pointer; }
[data-bs-theme="dark"] .lg-auth-content .form-check-label { color: #94a3b8; }

.lg-auth-content .lar-agreement-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: #64748b;
    margin: 4px 0 14px;
}
.lg-auth-content .lar-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; margin: 0; }
.lg-auth-content .lar-check-input { position: absolute; opacity: 0; width: 0; height: 0; }
.lg-auth-content .lar-check-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: #fff;
    transition: all .2s;
    flex: 0 0 16px;
}
.lg-auth-content .lar-check-box i { opacity: 0; transform: scale(.5); transition: all .2s; }
.lg-auth-content .lar-check-input:checked + .lar-check-box {
    background: linear-gradient(135deg, #3b6ff5, #5b8def);
    border-color: transparent;
}
.lg-auth-content .lar-check-input:checked + .lar-check-box i { opacity: 1; transform: scale(1); }
.lg-auth-content .lar-check-link { color: #3b6ff5; text-decoration: none !important; }
.lg-auth-content .lar-check-link:hover { text-decoration: underline !important; }

/* ==================== 12. 链接行 / 提示条 ==================== */
.lg-auth-content .lar-link-row {
    text-align: center;
    font-size: .82rem;
    color: #64748b;
}
[data-bs-theme="dark"] .lg-auth-content .lar-link-row { color: #94a3b8; }
.lg-auth-content .lar-link-row a { color: #3b6ff5; font-weight: 600; text-decoration: none !important; }
.lg-auth-content .lar-link-row a:hover { text-decoration: underline !important; }

.lg-auth-content .lar-reset-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 13px;
    margin: 0 0 15px;
    line-height: 1.5;
}
[data-bs-theme="dark"] .lg-auth-content .lar-reset-hint {
    color: #fcd34d;
    background: rgba(245,158,11,.08);
    border-color: rgba(245,158,11,.25);
}

.lg-auth-content .lar-disabled-notice {
    text-align: center;
    padding: 36px 20px;
    color: #64748b;
}
.lg-auth-content .lar-disabled-notice i { font-size: 2.1rem; color: #cbd5e1; margin-bottom: 12px; display: block; }
.lg-auth-content .lar-disabled-notice p { margin: 0; font-size: .9rem; }

/* ==================== 13. 提交按钮（主题蓝） ==================== */
.lg-auth-content .lar-btn-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .2s, box-shadow .2s, filter .2s;
    letter-spacing: .3px;
}
.lg-auth-content .lar-btn-submit-primary {
    background: linear-gradient(135deg, #3b6ff5, #5b8def);
    box-shadow: 0 6px 16px rgba(59,111,245,.32);
}
.lg-auth-content .lar-btn-submit-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 6px 16px rgba(239,68,68,.26);
}
.lg-auth-content .lar-btn-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lg-auth-content .lar-btn-submit:active { transform: translateY(0); }
.lg-auth-content .lar-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ==================== 14. 分隔线与第三方登录 ==================== */
.lg-auth-content .lar-divider {
    position: relative;
    text-align: center;
    margin: 20px 0 14px;
}
.lg-auth-content .lar-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e9f0;
}
[data-bs-theme="dark"] .lg-auth-content .lar-divider::before { background: #2c3448; }
.lg-auth-content .lar-divider span {
    position: relative;
    background: #fff;
    padding: 0 14px;
    font-size: .74rem;
    color: #94a3b8;
}
[data-bs-theme="dark"] .lg-auth-content .lar-divider span { background: #1a2030; }

.lg-auth-content .lar-social { display: flex; gap: 10px; }
.lg-auth-content .lar-social-btn {
    flex: 1;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.lg-auth-content .lar-social-btn:hover { transform: translateY(-1px); filter: brightness(1.06); color: #fff; }
.lg-auth-content .lar-social-qq { background: linear-gradient(135deg, #2795ee, #126fd4); box-shadow: 0 5px 14px rgba(39,149,238,.28); }
.lg-auth-content .lar-social-wx { background: linear-gradient(135deg, #22c55e, #15a34a); box-shadow: 0 5px 14px rgba(34,197,94,.28); }

/* ==================== 15. 底部版权 ==================== */
.lg-auth-content .lar-foot {
    text-align: center;
    margin-top: 18px;
    font-size: .72rem;
    color: #94a3b8;
    line-height: 1.7;
}
.lg-auth-content .lar-foot p { margin: 0; }
.lg-auth-content .lar-foot a { color: #94a3b8; text-decoration: none !important; }
.lg-auth-content .lar-foot a:hover { color: #3b6ff5; }

/* ==================== 16. 响应式 ==================== */
@media (max-width: 960px) {
    .lg-auth-shell {
        grid-template-columns: 1fr;
        max-width: 440px;
        border-radius: 16px;
    }
    .lg-auth-brand { display: none; }
    .lg-auth-panel { padding: 34px 28px; }
    .lg-auth-mobile-logo { display: inline-block; margin-bottom: 14px; }
}

@media (max-width: 480px) {
    .lg-auth-page { padding: 16px 12px; align-items: flex-start; }
    .lg-auth-shell { border-radius: 14px; }
    .lg-auth-panel { padding: 28px 20px; }
    .lg-auth-title { font-size: 1.28rem; }
    .lg-auth-back { top: 14px; left: 14px; padding: 7px 13px; font-size: .76rem; }
    .lg-auth-content .lar-social { flex-direction: column; }
}

/* ==================== 17. 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
    .lg-auth-page::before,
    .lg-auth-page::after,
    .lg-auth-shell { animation: none !important; }
}
