/* ======================================================= */
/* CERRODELIVERY - LOGIN.CSS (ESTILO CORPORATIVO)          */
/* ======================================================= */

/* --- 1. FONDO Y CONTENEDOR PRINCIPAL --- */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    
    /* Imagen de fondo con efecto parallax fijo */
    background-image: url('../img/plaza.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay degradado con identidad de marca */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Degradado: De Azul Noche Oscuro a un toque de Naranja transparente */
    background: linear-gradient(135deg, rgba(34, 40, 49, 0.9), rgba(214, 90, 49, 0.3));
    backdrop-filter: blur(5px); /* Desenfoque elegante */
    z-index: 1;
}

/* --- 2. TARJETA DE LOGIN (AUTH CARD) --- */
.auth-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    
    background: rgba(255, 255, 255, 0.98); /* Blanco sólido para lectura clara */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    
    /* Sombra con tinte anaranjado muy sutil */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card .card-body {
    padding: 3rem 2.5rem;
}

/* --- 3. LOGOTIPO Y TÍTULOS --- */
.auth-card img {
    height: 60px !important;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.auth-card img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.auth-card .card-title {
    font-weight: 800;
    color: #222831; /* Azul Oscuro Corporativo */
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-card p.text-muted {
    font-size: 0.95rem;
    margin-bottom: 2rem !important;
    color: #6b7280;
}

/* --- 4. FORMULARIO (INPUTS) --- */
.form-label {
    font-weight: 700;
    color: #222831; /* Azul Oscuro */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
}

.form-control {
    background-color: #f9fafb; /* Fondo gris muy suave */
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #d65a31; /* Borde Naranja Ladrillo */
    /* Resplandor Naranja */
    box-shadow: 0 0 0 4px rgba(214, 90, 49, 0.15); 
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* --- 5. BOTONES (COLORES DE MARCA) --- */
.btn-primary, .btn-success, .btn-info {
    width: 100%;
    padding: 0.9rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
    text-transform: uppercase;
}

/* CLIENTE: Naranja Ladrillo */
.btn-primary {
    background: linear-gradient(135deg, #d65a31, #bf4d26);
    box-shadow: 0 10px 20px rgba(214, 90, 49, 0.3);
    color: white;
}

/* RESTAURANTE: Verde (Se mantiene para diferenciar) */
.btn-success {
    background: linear-gradient(135deg, #198754, #146c43);
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.3);
    color: white;
}

/* REPARTIDOR: Azul Oscuro (Identidad Corporativa) */
.btn-info {
    background: linear-gradient(135deg, #222831, #393e46);
    box-shadow: 0 10px 20px rgba(34, 40, 49, 0.3);
    color: white !important;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* --- 6. ENLACES Y PIE --- */
.auth-card p.text-center {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 1.5rem;
}

.auth-card a {
    color: #d65a31; /* Enlaces en Naranja */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-card a:hover {
    color: #bf4d26; /* Naranja más oscuro al hover */
    text-decoration: underline;
}

/* Botón "Volver al Inicio" */
.btn-outline-secondary {
    border: 2px solid #e5e7eb;
    color: #6b7280;
    background: transparent;
    border-radius: 50px;
    padding: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

.btn-outline-secondary:hover {
    border-color: #d65a31;
    color: #d65a31;
    background-color: #fff;
}

/* --- 7. ALERTAS --- */
.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

/* --- 8. RESPONSIVIDAD --- */
@media (max-width: 576px) {
    .auth-page {
        padding: 1rem;
        padding-top: 3rem;
        align-items: start;
    }
    
    .auth-card {
        border-radius: 20px;
    }
    
    .auth-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .auth-card .card-title {
        font-size: 1.5rem;
    }
}