/* ===== 登录界面样式 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    font-family: -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: #1E293B;
    -webkit-app-region: no-drag;
}

/* ===== 关闭按钮 ===== */
.close-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
    color: #94A3B8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-app-region: no-drag;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* 容器 - 透明背景居中 */
.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 20px;
}

/* 卡片 */
.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px 32px 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* ===== 标题区域 ===== */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4A6CF7 0%, #6C8AFF 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.logo-icon {
    font-size: 28px;
    color: white;
}

.title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 12px;
    color: #94A3B8;
    letter-spacing: 1px;
}

/* ===== 二维码区域 ===== */
.qrcode-section {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 210px;
}

.qrcode-box {
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #F1F5F9;
}

/* 登录按钮 */
.login-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 48px;
    border: 2px dashed #4A6CF7;
    border-radius: 16px;
    background: rgba(74, 108, 247, 0.04);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.login-btn:hover {
    background: rgba(74, 108, 247, 0.10);
    border-color: #3a56d4;
}

.login-btn:active {
    transform: scale(0.98);
}

.wechat-icon {
    font-size: 40px;
}

.btn-text {
    font-size: 15px;
    font-weight: 600;
    color: #4A6CF7;
}

.login-hint {
    font-size: 12px;
    color: #94A3B8;
    text-align: center;
    margin-top: 12px;
}

.qrcode-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E2E8F0;
    border-top-color: #4A6CF7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 状态提示 ===== */
.status-section {
    text-align: center;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-text {
    font-size: 14px;
    color: #64748B;
    transition: color 0.3s;
}

.status-text.success {
    color: #22C55E;
}

.status-text.error {
    color: #EF4444;
}

.error-text {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
    max-width: 300px;
    word-break: break-all;
}

/* ===== 底部 ===== */
.footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 11px;
    color: #CBD5E1;
}

.footer .divider {
    color: #E2E8F0;
}
