/* ============================================================
   高思数学 · 商业化会员卡密激活与授权弹窗样式表 (auth.css)
   完全对齐高思课件官方视觉系统：皇家主题蓝 + 琥珀金 + 极简磨砂白
============================================================ */

/* 顶部授权状态胶囊徽标 */
.gaosi-auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(47, 126, 234, 0.1), rgba(30, 58, 138, 0.08));
    border: 1px solid rgba(47, 126, 234, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gaosi-auth-pill:hover {
    background: rgba(47, 126, 234, 0.18);
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.gaosi-auth-pill.vip {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #b45309;
}

/* 遮罩背景 */
.gaosi-auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: gaosiFadeIn 0.3s ease;
}

@keyframes gaosiFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gaosiScaleUp {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 激活弹窗主体卡片 */
.gaosi-auth-card {
    width: 90%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
    overflow: hidden;
    animation: gaosiScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

/* 卡片顶栏大图与装饰 */
.gaosi-auth-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    padding: 24px 24px 20px;
    color: #ffffff;
    position: relative;
    text-align: center;
}

.gaosi-auth-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.gaosi-auth-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gaosi-auth-header p {
    font-size: 13px;
    color: #dbeafe;
    margin: 0;
    opacity: 0.9;
}

/* 卡片内容区 */
.gaosi-auth-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gaosi-auth-problem-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gaosi-auth-problem-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.gaosi-auth-problem-info {
    flex: 1;
    min-width: 0;
}

.gaosi-auth-problem-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gaosi-auth-problem-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* 输入框组 */
.gaosi-auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gaosi-auth-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: flex;
    justify-content: space-between;
}

.gaosi-auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    text-transform: uppercase;
}

.gaosi-auth-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gaosi-auth-input::placeholder {
    color: #94a3b8;
    text-transform: none;
}

/* 按钮组 */
.gaosi-auth-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gaosi-auth-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.gaosi-auth-btn-primary:active {
    transform: translateY(0);
}

.gaosi-auth-actions-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.gaosi-auth-btn-text {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gaosi-auth-btn-text:hover {
    color: #2563eb;
}

.gaosi-auth-demo-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gaosi-auth-demo-badge:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* 错误提示 */
.gaosi-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    display: none;
    align-items: center;
    gap: 6px;
}

/* 选项卡切换 (登录 / 注册 / 卡密激活) */
.gaosi-auth-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    gap: 8px;
}

.gaosi-auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    user-select: none;
}

.gaosi-auth-tab:hover {
    color: #2563eb;
}

.gaosi-auth-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* 免登录免费试看状态徽标 */
.gaosi-auth-pill.trial {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    color: #065f46;
}

.gaosi-auth-pill.trial:hover {
    background: #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.gaosi-auth-pill.trial a {
    color: #047857;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 4px;
}

/* 门户题目卡片标签 */
.badge-free-trial {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
}

.badge-member-only {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

/* 管理员登录遮罩与卡片 */
.gaosi-admin-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: gaosiFadeIn 0.3s ease;
}

.gaosi-admin-gate-card {
    width: 90%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: gaosiScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

