/* Sleek Compact Auth Alert Styles */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    border: 1px solid;
    transition: all 0.2s ease;
}

/* Info Alert - Blue */
.auth-alert-info {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-color: #93C5FD;
    color: #1E40AF;
}

/* Error Alert - Red */
.auth-alert-error {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-color: #FCA5A5;
    color: #991B1B;
}

/* Success Alert - Green */
.auth-alert-success {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-color: #86EFAC;
    color: #166534;
}

/* Warning Alert - Yellow */
.auth-alert-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FCD34D;
    color: #92400E;
}

/* Close Button */
.auth-alert-close {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
    opacity: 0.6;
    cursor: pointer;
    border: none;
    background: transparent;
}

.auth-alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* Icon styling */
.auth-alert i:first-child {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Dark Mode Variants */
.dark .auth-alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93C5FD;
}

.dark .auth-alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.dark .auth-alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86EFAC;
}

.dark .auth-alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.3);
    color: #FCD34D;
}

.dark .auth-alert-close:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Animation for auto-dismiss */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.auth-alert.dismissing {
    animation: fadeOut 0.3s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .auth-alert {
        padding: 0.5rem 0.625rem;
        font-size: 0.7rem;
    }
    
    .auth-alert-close {
        width: 1rem;
        height: 1rem;
    }
}

