/* Premium Modal Dialog for Auth Pages (Dark Mode) */
#alertModal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    display: none; /* Controlled via JS active class */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#alertModal.active {
    opacity: 1;
    pointer-events: all;
    display: flex;
}

.alert-dialog {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    width: 95%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(40px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#alertModal.active .alert-dialog {
    transform: scale(1) translateY(0);
}

.alert-title {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.alert-message {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.alert-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

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

/* Auth Page Enhancements */
.premium-card {
    background: rgba(31, 41, 55, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-radius: 24px !important;
}

.premium-input {
    background: rgba(17, 24, 39, 0.6) !important;
    border: 1px solid rgba(75, 85, 99, 0.4) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: white !important;
    transition: all 0.2s ease-in-out !important;
}

.premium-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    background: rgba(17, 24, 39, 0.8) !important;
}

/* Specific to Admin Theme */
.admin-card {
    border-bottom: 4px solid #ef4444 !important;
}

.admin-btn {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    border: none !important;
}

.admin-btn:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px);
    filter: brightness(1.1);
}
