/* css/login.css */

:root {
    --primary-color: #F2994A; /* Naranja Nancy */
    --primary-hover: #e67e22;
    --dark-bg: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;

    --brand-title-color: rgba(255, 255, 255, 0.58);
    --brand-subtitle-color: rgba(255, 255, 255, 0.45);
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    background-color: #fff;
}

/* --- SECCIÓN IZQUIERDA (BRANDING) --- */
.bg-branding {
    background-image: url('../img/panaderia_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--dark-bg);
}

/* Capa oscura sobre la imagen para que el texto resalte */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        135deg,
        rgba(242, 153, 74, 0.9) 0%,
        rgba(20, 20, 20, 0.8) 100%
    );

    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    height: 260px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    opacity: 0.5;
}

/* Evita que el logo se pueda seleccionar o arrastrar */
.brand-logo,
.header-mobile img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* Título y subtítulo integrados visualmente con la transparencia del logo */
.brand-title {
    color: var(--brand-title-color);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.brand-subtitle {
    color: var(--brand-subtitle-color);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

/* --- SECCIÓN DERECHA (FORMULARIO) --- */
.login-card {
    background: rgba(255, 255, 255, 0.12) !important; /* Más transparente para que luzca el glass sobre fondo oscuro */
    backdrop-filter: blur(16px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff;
}

/* Make text inside the card white for better contrast */
.login-card h2, .login-card p, .login-card .form-label-custom {
    color: #fff !important;
}

.login-wrapper {
    max-width: 400px;
    padding: 2rem;
}



/* =========================================================
   ALERTA LOGIN COMPACTA
   ========================================================= */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(220, 53, 69, 0.18);
    background: #fff7f7;
    color: #7f1d1d;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    animation: loginAlertIn 0.22s ease-out;
}

.login-alert-error {
    border-left: 4px solid #dc3545;
}

.login-alert-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc3545;
    font-size: 0.95rem;
}

.login-alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}

.login-alert-content strong {
    font-size: 0.86rem;
    font-weight: 800;
    color: #991b1b;
}

.login-alert-content span {
    font-size: 0.78rem;
    font-weight: 500;
    color: #7f1d1d;
}

@keyframes loginAlertIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
