/* ========== 全屏品牌渐变背景（固定层，内容再长也不裁切） ========== */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 12% 8%, rgba(118,75,162,0.55), transparent 60%),
        radial-gradient(1000px 700px at 88% 92%, rgba(91,110,225,0.55), transparent 60%),
        linear-gradient(145deg, #5b6ee1 0%, #764ba2 100%);
}
.auth-bg::before,
.auth-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    background: rgba(255,255,255,0.12);
}
.auth-bg::before { width: 360px; height: 360px; left: -90px; top: -110px; }
.auth-bg::after  { width: 300px; height: 300px; right: -70px; bottom: -90px; }

html { background: #5b6ee1 !important; }
body { background: transparent !important; }
.navbar, .navbar-fixed-top, .wrap > nav, nav.navbar, .footer { display: none !important; }
.wrap { margin: 0 !important; padding: 0 !important; }
.container { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }

.auth-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

/* 左上角浮动的品牌字标 */
.auth-brand {
    position: fixed;
    top: 28px; left: 32px;
    z-index: 3;
    display: flex; align-items: center; gap: 12px;
    color: #fff;
}
.auth-brand .logo {
    width: 44px; height: 44px; border-radius: 13px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.auth-brand .name { font-size: 19px; font-weight: 800; letter-spacing: 1px; }

/* ========== 毛玻璃卡片 ========== */
.glass-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px 40px 30px;
    border-radius: 26px;
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 30px 70px rgba(40,30,80,0.35);
    animation: glassUp 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.glass-card.wide { max-width: 460px; }
@keyframes glassUp {
    from { opacity: 0; transform: translateY(28px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}
.glass-card .auth-logo {
    width: 62px; height: 62px;
    border-radius: 18px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #5b6ee1, #764ba2);
    color: #fff;
    font-size: 28px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 26px rgba(91,110,225,0.45);
}
.glass-card .auth-head { text-align: center; margin-bottom: 14px; }
.glass-card .auth-head h1 { font-size: 23px; font-weight: 700; color: #1a202c; margin: 0 0 6px; }
.glass-card .auth-head p  { font-size: 14px; color: #718096; margin: 0; }

/* —— 覆盖 LoginWidget 内部样式 —— */
.glass-card .login-panel { border: none !important; box-shadow: none !important; background: transparent !important; }
.glass-card .login-panel .panel-body { padding: 0 !important; }
.glass-card .login-panel .panel-heading { display: none !important; }

.glass-card .login-tabs {
    display: flex;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 22px;
}
.glass-card .login-tab {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    font-size: 14px;
    color: #718096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease;
}
.glass-card .login-tab:hover { color: #5b6ee1; }
.glass-card .login-tab.active { color: #5b6ee1; border-bottom-color: #5b6ee1; font-weight: 600; }

.glass-card .form-control {
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    padding: 10px 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.glass-card .form-control:focus {
    border-color: #5b6ee1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91,110,225,0.14);
    outline: none;
}
.glass-card .has-error .form-control { border-color: #f56565; }
.glass-card .help-block-error { color: #e53e3e; font-size: 12px; margin-top: 4px; }
.glass-card label { display: block; margin-bottom: 7px; font-weight: 500; font-size: 14px; color: #2d3748; }
.glass-card .form-group { margin-bottom: 16px; }

.glass-card .btn-primary {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5b6ee1, #764ba2);
    box-shadow: 0 10px 24px rgba(91,110,225,0.35);
    transition: all 0.2s ease;
    margin-top: 8px;
}
.glass-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(91,110,225,0.45); }
.glass-card .btn-primary:active { transform: translateY(0); }

.glass-card .auth-foot {
    text-align: center;
    font-size: 13px;
    color: #718096;
    padding: 22px 0 4px;
}
.glass-card .auth-foot a { color: #5b6ee1; text-decoration: none; font-weight: 600; }
.glass-card .auth-foot a:hover { text-decoration: underline; }

.glass-card .alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    border: none;
    border-left: 4px solid;
}
.glass-card .alert-danger  { background: #fff5f5; border-color: #f56565; color: #9b2c2c; }
.glass-card .alert-success { background: #f0fff4; border-color: #48bb78; color: #276749; }
.glass-card .alert-info    { background: #ebf8ff; border-color: #4299e1; color: #2b6cb0; }

/* 验证码行：输入框 + 发送按钮 */
.glass-card .code-row { display: flex; gap: 10px; align-items: flex-end; }
.glass-card .code-row .form-control { flex: 1; }
.glass-card .code-btn {
    flex: 0 0 auto;
    min-width: 116px;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #5b6ee1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.glass-card .code-btn:hover:not(:disabled) { border-color: #5b6ee1; background: #f5f7ff; }
.glass-card .code-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* 找回密码：邮箱/手机 双标签 */
.glass-card .reset-tabs { display: flex; border-bottom: 1px solid #edf2f7; margin-bottom: 22px; }
.glass-card .reset-tab {
    flex: 1; text-align: center; padding: 12px 4px; font-size: 14px;
    color: #718096; cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.2s ease;
}
.glass-card .reset-tab:hover { color: #5b6ee1; }
.glass-card .reset-tab.active { color: #5b6ee1; border-bottom-color: #5b6ee1; font-weight: 600; }
.glass-card .reset-pane { display: none; }
.glass-card .reset-pane.active { display: block; }

.checkbox { margin: 4px 0 12px; font-size: 14px; color: #4a5568; }
.checkbox label { display: inline; font-weight: 400; }

@media (max-width: 576px) {
    .auth-stage { padding: 76px 14px 32px; align-items: flex-start; }
    .glass-card { padding: 32px 22px 24px; border-radius: 22px; }
    .auth-brand { top: 20px; left: 20px; }
    .auth-brand .logo { width: 38px; height: 38px; font-size: 19px; }
}
