/* Premium Modal Dialog for Auth Pages (Rich Aesthetics) */
#alertModal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 7, 18, 0.4);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    display: none; 
    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(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 40px;
    width: 95%;
    max-width: 440px;
    text-align: center;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(40px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: relative;
    overflow: hidden;
}

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

/* Status Icons Wrapper */
.alert-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-icon-wrapper svg {
    width: 48px;
    height: 48px;
}

/* Type Specifics */
.alert-error .alert-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-success .alert-icon-wrapper {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.alert-info .alert-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.alert-title {
    font-weight: 800;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.alert-error .alert-title {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.alert-message {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 500;
}

.alert-btn {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.alert-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Animations */
@keyframes alert-shake {
    0%, 100% { transform: scale(1) translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: scale(1) translateX(-6px); }
    20%, 40%, 60%, 80% { transform: scale(1) translateX(6px); }
}

.alert-error.animate-shake {
    animation: alert-shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

/* Scrollbar styling if message is long */
.alert-message {
    max-height: 15vh;
    overflow-y: auto;
}
.alert-message::-webkit-scrollbar { width: 4px; }
.alert-message::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

/* Premium Input Fields for Auth forms */
.premium-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5); /* blue-500 tint */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 2px 4px rgba(0,0,0,0.2);
}
