/**
 * dignativeX Product Authentication - Overlay Styles
 *
 * This stylesheet provides the authentication overlay design for dignativeX products.
 * Include this in your HTML to style the authentication overlay.
 *
 * Required HTML structure (see overlay-template.html for complete example):
 * <div id="authRequiredOverlay" class="auth-overlay" style="display: none;">
 *   <div class="auth-content">
 *     <div class="auth-icon" id="authIcon">🔒</div>
 *     <h2 id="authTitle">Authentication Required</h2>
 *     <p id="authMessage">Please log in to access this tool.</p>
 *     <div id="authDetails" class="auth-details" style="display: none;"></div>
 *     <button class="btn-primary" id="loginButton" onclick="redirectToLogin()">
 *       🔐 Go to Login
 *     </button>
 *   </div>
 * </div>
 */

/* Authentication Required Overlay */
.auth-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
    z-index: 99999 !important;
    /* display controlled by inline style - removed !important so inline style works */
    justify-content: center !important;
    align-items: center !important;
}

/* When overlay is shown, display as flex */
.auth-overlay[style*="display: flex"] {
    display: flex !important;
}

.auth-content {
    background: white !important;
    padding: 50px 60px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    text-align: center !important;
    max-width: 500px !important;
    min-width: 400px !important;
    position: relative !important;
    z-index: 100000 !important;
}

.auth-content-wide {
    max-width: 700px !important;
    min-width: 600px !important;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.auth-buttons .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.auth-buttons .btn-secondary:hover {
    background: #5a6268;
}

.auth-icon {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.auth-content h2 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
}

.auth-content p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.5;
}

.auth-details {
    background: #f8f9fa;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    border-radius: 4px;
}

.auth-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #495057;
}

.auth-details strong {
    color: #212529;
}

.auth-content .btn-primary {
    margin-top: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    min-width: 200px;
}

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