/* ==================== 粉丝门禁系统样式 — 黄绿蓝渐变主题 ==================== */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 90% 70% at 8% 0%, rgba(255, 213, 79, 0.55), transparent 52%),
        radial-gradient(ellipse 75% 55% at 95% 8%, rgba(66, 165, 245, 0.42), transparent 50%),
        radial-gradient(ellipse 80% 60% at 42% 100%, rgba(129, 199, 132, 0.48), transparent 55%),
        linear-gradient(168deg, #fff9c4 0%, #e8f5e9 32%, #e3f2fd 68%, #bbdefb 100%);
    background-attachment: fixed;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(66, 165, 245, 0.1), 0 4px 16px rgba(129, 199, 132, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 28px;
    margin: 0 0 8px;
    background: linear-gradient(128deg, #ffe082 0%, #81c784 48%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #5a7a86;
    font-size: 14px;
    margin: 0;
}

/* ===== 门禁步骤 ===== */
.gate-step {
    text-align: center;
    animation: fadeIn 0.3s ease;
}

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

.gate-welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.gate-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.gate-title {
    font-size: 22px;
    color: #2e5f6e;
    margin: 0 0 12px;
}

.gate-desc {
    color: #5a7a86;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.gate-steps-preview {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.gate-step-item {
    background: rgba(255, 248, 225, 0.55);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #2e5f6e;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.gate-note {
    color: #9ab0b8;
    font-size: 12px;
    margin-top: 16px;
}

/* ===== 按钮 ===== */
.gate-btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.22s;
    background: rgba(255, 255, 255, 0.72);
    color: #3a5f6a;
    margin: 8px 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.gate-btn:hover {
    background: var(--gradient-brand-soft, linear-gradient(135deg, rgba(255, 224, 130, 0.35), rgba(129, 199, 132, 0.28), rgba(100, 181, 246, 0.32)));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 165, 245, 0.12);
}

.gate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gate-btn-primary {
    background: linear-gradient(128deg, #ffe082 0%, #81c784 48%, #64b5f6 100%);
    color: #1a3a4a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(66, 165, 245, 0.22);
    font-weight: 700;
}

.gate-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(66, 165, 245, 0.32);
    filter: brightness(1.04);
}

/* ===== 答题 ===== */
.quiz-progress {
    font-size: 13px;
    color: #9ab0b8;
    margin-bottom: 12px;
}

.quiz-timer {
    position: relative;
    height: 28px;
    background: rgba(240, 247, 255, 0.5);
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.quiz-timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffe082, #81c784, #64b5f6);
    border-radius: 14px;
    transition: width 1s linear;
    width: 100%;
}

.quiz-timer span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    z-index: 1;
}

.quiz-question {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 54px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    padding: 14px 20px;
    border: 2px solid rgba(238, 242, 230, 0.7);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    color: #2c3e50;
}

.quiz-option:hover:not(:disabled) {
    border-color: #81c784;
    background: rgba(232, 245, 233, 0.6);
    transform: translateY(-1px);
}

.quiz-option:disabled {
    cursor: not-allowed;
}

.quiz-option.correct {
    border-color: #66bb6a;
    background: rgba(232, 245, 233, 0.7);
    color: #2e7d32;
}

.quiz-option.wrong {
    border-color: #ff6b6b;
    background: rgba(255, 235, 238, 0.7);
    color: #c62828;
}

/* 答题结果 */
.quiz-result {
    padding: 20px;
}

.quiz-result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.quiz-result-text {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.quiz-result-hint {
    color: #9ab0b8;
    font-size: 14px;
    margin-bottom: 16px;
}

.quiz-result-cooldown {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 12px;
}

.quiz-result.fail {
    color: #c62828;
}

/* ===== 微博验证 ===== */
.gate-weibo-form {
    text-align: left;
    margin-top: 16px;
}

.gate-form-group {
    margin-bottom: 16px;
}

.gate-form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #2e5f6e;
    margin-bottom: 6px;
}

.gate-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(238, 242, 230, 0.7);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    color: #2c3e50;
}

.gate-form-group input:focus {
    border-color: rgba(66, 165, 245, 0.5);
    box-shadow: 0 4px 16px rgba(100, 181, 246, 0.12);
    outline: none;
}

.gate-form-group input[readOnly] {
    background: rgba(240, 247, 255, 0.5);
    color: #5a7a86;
}

.gate-hint {
    color: #9ab0b8;
    font-size: 12px;
    margin: 6px 0 0;
    line-height: 1.5;
}

.gate-code-area {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 248, 225, 0.4);
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.gate-code-label {
    font-size: 14px;
    color: #2e5f6e;
    margin-bottom: 12px;
}

.gate-code-display {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 8px;
    background: linear-gradient(128deg, #ffe082 0%, #81c784 48%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background: rgba(255, 255, 255, 0.85);
    border: 2px dashed #81c784;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    font-family: monospace;
    /* gradient text override for code - keep dark readable */
    -webkit-text-fill-color: #2e5f6e;
}
