/* css/scan_login.css - 扫码登录页面样式（完整分离版） */

/* 使用login.php相同的容器样式 */
.auth-container {
    width: 80%;
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eaeaea;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-header h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-header p {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

/* 扫码卡片 */
.scan-simple-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid #e8eef3;
    text-align: center;
}

/* 二维码 */
.qrcode-simple-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
}

.qrcode-simple-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid #dbe1e8;
    padding: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 成功覆盖层 */
.qrcode-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 174, 96, 0.95);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

.success-animation {
    text-align: center;
    color: white;
}

.success-animation i {
    font-size: 50px;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease;
}

.success-animation p {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.countdown-simple {
    font-size: 24px;
    font-weight: 600;
    animation: pulse 1s infinite;
}

/* 状态提示 */
.scan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #5a6c7d;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
    animation: pulseDot 2s infinite;
}

.status-dot.pending {
    background: #3498db;
}

.status-dot.scanned {
    background: #f39c12;
}

.status-dot.success {
    background: #27ae60;
}

.status-dot.expired {
    background: #e74c3c;
}

/* 简单步骤 */
.scan-simple-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.simple-step {
    text-align: center;
    flex: 1;
    max-width: 80px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #e9ecef;
    color: #95a5a6;
    border-radius: 50%;
    line-height: 32px;
    margin: 0 auto 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 13px;
    color: #5a6c7d;
    font-weight: 500;
}

.simple-step.active .step-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    animation: pulseStep 1.5s infinite;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

/* 按钮 */
.scan-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.btn-simple {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #dbe1e8;
    background: white;
    color: #5a6c7d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.btn-simple:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    border-color: #3498db;
    color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.btn-simple.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #2980b9;
}

.btn-simple.primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    border-color: #2573a7;
}

/* 页脚 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #5a6c7d;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

.auth-footer a:hover {
    color: #2980b9;
    text-decoration: none;
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-footer a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 1px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.auth-footer a:hover:after {
    transform: scaleX(1);
}

.auth-footer p {
    margin: 8px 0;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulseDot {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulseStep {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .scan-simple-card {
        padding: 20px;
    }
    
    .qrcode-simple-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .success-animation i {
        font-size: 40px;
    }
    
    .success-animation p {
        font-size: 14px;
    }
    
    .countdown-simple {
        font-size: 20px;
    }
    
    .scan-simple-steps {
        gap: 15px;
    }
    
    .step-text {
        font-size: 12px;
    }
    
    .btn-simple {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .scan-simple-card {
        padding: 15px;
    }
    
    .qrcode-simple-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .scan-action-buttons {
        flex-direction: column;
    }
    
    .btn-simple {
        width: 100%;
    }
}

/* 针对小高度屏幕 */
@media (max-height: 700px) {
    .auth-container {
        margin: 10px auto;
        padding: 20px;
    }
    
    .auth-header {
        margin-bottom: 15px;
    }
    
    .scan-simple-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .auth-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
}