/* ==========================================
   AUTHENTICATION MODAL STYLES
   ========================================== */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.auth-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 2px solid #f0f0f0;
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.auth-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-close:hover {
    background: #f0f0f0;
    color: #333;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 24px;
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #666;
}

.auth-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.auth-tab-content {
    display: none;
    padding: 24px;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.auth-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.auth-form-group small {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
}

.auth-error {
    display: none;
    padding: 12px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-btn-primary {
    background: #4CAF50;
    color: white;
}

.auth-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

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

.auth-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.auth-btn-secondary:hover {
    background: #e0e0e0;
}

.auth-success-content {
    text-align: center;
}

.auth-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.auth-success-content h3 {
    margin: 0 0 16px;
    color: #333;
}

.auth-success-content p {
    color: #666;
    margin: 12px 0;
}

.auth-player-id-display {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 16px 0;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.auth-player-id-display code {
    flex: 1;
    font-size: 14px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    color: #333;
}

.auth-btn-copy {
    padding: 8px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.auth-btn-copy:hover {
    background: #45a049;
}

.auth-magic-link {
    margin: 20px 0;
}

.auth-magic-link input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin: 8px 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

.auth-warning {
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    margin: 16px 0;
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.auth-actions .auth-btn {
    width: auto;
    flex: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .auth-modal-header {
        padding: 16px;
    }

    .auth-tab-content {
        padding: 16px;
    }

    .auth-player-id-display {
        flex-direction: column;
    }

    .auth-btn-copy {
        width: 100%;
    }

    .auth-actions {
        flex-direction: column;
    }
}
@charset "UTF-8";
/* Clean success icon rendering */
.auth-success-icon { color: transparent; position: relative; }
.auth-success-icon::before { content: '✅'; color: #2e7d32; font-size: 28px; }
