/* Solo los estilos del login */

body {
    
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    font-size: 0.7rem;
    user-select: none;
    overflow-x: hidden;
    background: var(--clr-color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
}

.login-register-container {
    padding: 2rem;
    border-radius: var(--border-radius-2);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-register-container h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.login-register-container form div {
    margin-bottom: 1rem;
    text-align: left;
}

.login-register-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.login-register-container input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #E23642;
    border-radius: var(--border-radius-1);
}

.login-register-container button {
    width: 420px;
    padding: 0.75rem;
    background-color: #E23642;
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-1);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-register-container button:hover {
    background-color: #b52a34;
}

/* Agregar logo */
.login-register-container::before {
    content: url('images/ADMIS_Completo_Wh320px2.png'); /* Reemplaza 'ruta/al/logo.png' con la ruta a tu logo */
    display: block;
    margin: 0 auto 1rem;
    max-width: 300px;
    padding-bottom: 50px;
}

.hidden {
    display: none;
}

#messageContainer {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    background-color: #4caf50;
    padding: 15px 25px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 1000 !important;
    font-size: 12px !important;
    text-align: center !important;
    color: white !important;
    display: none; /* Oculto por defecto */
}

.success {
    background-color: #4caf50 !important; /* Verde */
    color: white !important;
}

.error {
    background-color: #d9534f !important; /* Rojo */
    color: white !important;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #E23642;
}

.toast.warning {
    background: #f59e0b;
}

.toast.info {
    background: #3b82f6;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: white;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    opacity: 0.9;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    animation: progress 3s linear;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}
