/* css/notifications.css - Unified notification styles for all auth pages */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 320px;
    max-width: 450px;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease forwards;
}

.notification.show {
    transform: translateX(0);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: #28a745;
    background-color: #f0fff4;
}
.notification.success i {
    color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}
.notification.error i {
    color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
    background-color: #fff9e6;
}
.notification.warning i {
    color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
    background-color: #e6f6ff;
}
.notification.info i {
    color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-content i {
    font-size: 1.5rem;
}

.notification-message {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #666;
}

/* For login page specific alerts */
.alert {
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
}

.alert-success {
    background-color: #f0fff4;
    border-left: 4px solid #28a745;
    color: #2e7d32;
}

.alert-danger {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    color: #c62828;
}

.alert i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 576px) {
    .notification {
        min-width: 280px;
        padding: 12px 16px;
    }
    
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        max-width: 100%;
    }
}