/* 登录 / 注册 / 找回密码 — 认证页专用（style.min.css 可能未包含完整登录样式） */

.main.main-auth,
.main.main-auth .main-content {
    min-height: 100vh;
    min-height: 100dvh;
}

.login-fullbleed {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.login-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    flex: 1;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.login-brand {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    align-self: stretch;
    background:
        linear-gradient(125deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 95, 0.72) 50%, rgba(15, 23, 42, 0.85) 100%),
        url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
    background-color: #0f172a;
    color: #fff;
    padding: clamp(32px, 6vw, 64px) clamp(28px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: clamp(72px, 12vw, 120px);
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 800' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M120 0 C 40 200 80 400 0 800 L 120 800 Z'/%3E%3C/svg%3E") right center / 100% 100% no-repeat;
    pointer-events: none;
    opacity: 0.98;
}

.login-brand-inner { position: relative; z-index: 1; max-width: 420px; }
.login-brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.login-brand-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.25;
}
.login-brand-line {
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    line-height: 1.65;
    opacity: 0.95;
    margin: 0 0 10px;
}
.login-brand-line--muted { font-size: 14px; opacity: 0.82; font-weight: 400; }

.login-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px) clamp(24px, 6vw, 72px);
    padding-bottom: clamp(100px, 14vh, 128px);
    position: relative;
    min-height: 100%;
}

.login-panel-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.login-form-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-bottom: 24px;
}
.login-form-title-logo {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    margin: 0 auto 12px;
}
.login-form-title h2 {
    margin: 0;
    width: 100%;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.04em;
    text-align: center;
}
.login-form-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* 登录方式：顶部分段切换 */
.login-mode {
    display: flex;
    gap: 0;
    padding: 4px;
    margin-bottom: 22px;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.login-mode-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.login-mode-btn svg { flex-shrink: 0; opacity: 0.85; }
.login-mode-btn:hover:not(.active) { color: #334155; background: rgba(255, 255, 255, 0.6); }
.login-mode-btn.active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.login-mode-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.login-field { margin-bottom: 16px; }
.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    min-height: 48px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-input-wrap:focus-within {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.login-input-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    color: #64748b;
}
.login-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #0f172a;
    padding: 12px 0;
    outline: none;
}
.login-input-wrap input::placeholder { color: #94a3b8; }
.login-pwd-toggle {
    flex: 0 0 auto;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
    color: #64748b;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.login-pwd-toggle:hover { color: #0f172a; background: #f1f5f9; }

.login-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.login-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.login-submit:active { transform: translateY(1px); }

.login-input-wrap--with-btn { padding-right: 6px; }
.login-send-code {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.login-send-code--ready {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}
.login-send-code:hover:not(:disabled) { border-color: #1d4ed8; color: #1d4ed8; }
.login-send-code:disabled { opacity: 0.55; cursor: not-allowed; }

.login-aux {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}
.login-link-wechat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.login-link-wechat:hover { background: #f0fdf4; text-decoration: none; }
.login-link-wechat.is-disabled {
    color: #94a3b8;
    pointer-events: none;
    cursor: not-allowed;
    font-weight: 500;
}
.login-link-muted { color: #64748b; text-decoration: none; font-weight: 500; }
.login-link-muted:hover { color: #0f172a; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    font-size: 12px;
    color: #94a3b8;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-wechat-panel {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(22, 163, 74, 0.2);
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.login-wechat-panel--muted {
    border-color: #e2e8f0;
    background: #f8fafc;
    padding: 0;
    border: none;
}
.login-wechat-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
}
.login-wechat-panel--muted .login-wechat-title { color: #475569; }
.login-wechat-desc { margin: 0; font-size: 12px; line-height: 1.65; color: #64748b; }
.login-wechat-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.login-wechat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: #16a34a;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.2);
    transition: background 0.2s, box-shadow 0.2s;
}
.login-wechat-btn:hover {
    background: #15803d;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
    color: #fff;
}
.login-wechat-hint { font-size: 12px; color: #64748b; line-height: 1.5; }

.login-wechat-details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}
.login-wechat-details summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.login-wechat-details summary::-webkit-details-marker { display: none; }
.login-wechat-details summary::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M8.5 10a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3Cpath d='M12 2C6.48 2 2 5.98 2 11c0 2.87 1.51 5.44 3.89 7.23.16.12.26.31.26.51v1.76c0 .45.51.71.87.45l2.52-1.81c.15-.11.33-.16.51-.16H12c5.52 0 10-3.98 10-9S17.52 2 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.login-wechat-details[open] summary { border-bottom: 1px solid #e2e8f0; color: #475569; }
.login-wechat-details .login-wechat-desc { padding: 12px 14px 14px; }

.login-footer-hint {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.85;
}
.login-footer-hint a { color: #2563eb; font-weight: 600; text-decoration: none; }
.login-footer-hint a:hover { text-decoration: underline; }

.login-register-submit {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
    margin-top: 12px;
}
.login-register-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.32);
}
.login-register-ref-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.6;
}
.login-register-ref-hint strong { color: #0f172a; }
.login-register-note {
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
    text-align: center;
}
.login-demo {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.75;
    color: #475569;
}

/* 右下角版权与运营方（略高于底边，避免贴边） */
.login-page-footer {
    position: absolute;
    right: clamp(20px, 3.5vw, 40px);
    bottom: clamp(48px, 7vh, 72px);
    z-index: 20;
    pointer-events: none;
    text-align: right;
    max-width: min(calc(100% - 40px), 480px);
}
.login-page-footer-inner {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.login-page-copyright,
.login-page-operator {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0.02em;
}
.login-page-copyright {
    color: #64748b;
    font-weight: 500;
}
.login-page-operator {
    margin-top: 4px;
    color: #475569;
    font-weight: 600;
}

@media (max-width: 960px) {
    .login-fullbleed,
    .login-split {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .login-split { grid-template-columns: 1fr; }
    .login-brand {
        min-height: clamp(220px, 32vh, 280px);
        padding-bottom: 28px;
    }
    .login-brand::after { display: none; }
    .login-panel {
        padding-top: 24px;
        padding-bottom: clamp(110px, 16vh, 140px);
    }
    .login-card { padding: 22px 20px 20px; }
    .login-page-footer {
        bottom: clamp(40px, 6vh, 56px);
    }
}

@media (max-width: 480px) {
    .login-mode-btn { font-size: 13px; padding: 10px 8px; gap: 6px; }
    .login-mode-btn span.login-mode-text--long { display: none; }
    .login-page-footer {
        right: 12px;
        left: 12px;
        max-width: none;
    }
    .login-page-footer-inner {
        width: 100%;
        text-align: right;
        border-radius: 10px;
        padding: 9px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit,
    .login-mode-btn,
    .login-input-wrap { transition: none; }
}
