/* ==================== 认证界面样式 ==================== */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.auth-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-cyan);
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow:
        0 0 20px rgba(0, 255, 249, 0.3),
        inset 0 0 20px rgba(0, 255, 249, 0.1);
}

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

.auth-title {
    color: var(--neon-cyan);
    font-size: 24px;
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 2px solid rgba(0, 255, 249, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Zpix', monospace;
    font-size: 14px;
}

.auth-tab:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.auth-tab.active {
    background: rgba(0, 255, 249, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    color: var(--neon-cyan);
    font-size: 12px;
    text-transform: uppercase;
}

.auth-input {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 249, 0.3);
    color: var(--text-primary);
    padding: 12px;
    font-family: 'Zpix', monospace;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.auth-button {
    padding: 14px;
    background: rgba(0, 255, 249, 0.1);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    cursor: pointer;
    font-family: 'Zpix', monospace;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-button:hover {
    background: rgba(0, 255, 249, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 249, 0.5);
}

.auth-button:active {
    transform: scale(0.98);
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 12px;
    font-size: 12px;
    text-align: center;
}

.auth-qr-section {
    text-align: center;
    padding: 20px 0;
}

.auth-qr-container {
    background: white;
    padding: 20px;
    display: inline-block;
    margin: 20px auto;
}

.auth-qr-status {
    color: var(--neon-cyan);
    font-size: 12px;
    margin-top: 15px;
}

.auth-qr-hint {
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 10px;
    line-height: 1.6;
}

/* 用户信息显示 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 249, 0.3);
    margin-bottom: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 18px;
}

.user-details {
    flex: 1;
}

.user-name {
    color: var(--neon-cyan);
    font-size: 14px;
    margin-bottom: 4px;
}

.user-status {
    color: var(--text-secondary);
    font-size: 11px;
}

.user-status.cookie-valid {
    color: #10b981;
}

.user-status.cookie-invalid {
    color: #ef4444;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-action-btn {
    padding: 8px 15px;
    background: transparent;
    border: 2px solid rgba(0, 255, 249, 0.3);
    color: var(--neon-cyan);
    cursor: pointer;
    font-family: 'Zpix', monospace;
    font-size: 11px;
    transition: all 0.3s;
}

.user-action-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

/* 加载动画 */
.auth-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 249, 0.2);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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