/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-login {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout principal de dos paneles */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Panel izquierdo con la imagen de fondo y la marca */
/* Panel izquierdo con la imagen de fondo y la marca */
.login-left {
    flex: 1;
    /* ▼▼▼ OPACIDAD AUMENTADA Y GRADIENTE CORREGIDO ▼▼▼ */
    background: linear-gradient(135deg, 
        rgba(230, 126, 34, 0.75) 0%, 
        rgba(243, 156, 18, 0.7) 50%, 
        rgba(211, 84, 0, 0.65) 100%),
        url('../img/Fondo_indexjpg.jpg') no-repeat center center;
    background-size: cover;
    color: white; /* <-- blanco para el texto */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* ▼▼▼ BORDE NARANJA OSCURO PARA MÁXIMO CONTRASTE ▼▼▼ */
    text-shadow: 
        -1px -1px 0 #white,  
         1px -1px 0 #white,
        -1px  1px 0 #white,
         1px  1px 0 #white;
}

.app-info h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 15px;
}

.website-info {
    position: absolute;
    bottom: 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

/* Panel derecho con el formulario */
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

/* ▼▼▼ NUEVO ESTILO PARA EL LOGO EN EL PANEL DERECHO ▼▼▼ */
.login-container .logo {
    display: block;
    width: 100px;
    height: auto;
    margin: 0 auto 20px auto; /* Centrado y con margen inferior */
}

.welcome-message {
    margin-bottom: 30px;
    text-align: center;
}

.welcome-message h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50; /* Un color oscuro neutro */
    margin-bottom: 10px;
}

.welcome-message p {
    color: #666;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #f39c12; /* <-- COLOR NARANJA */
    font-size: 18px;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #f39c12; /* <-- COLOR NARANJA */
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2); /* <-- COLOR NARANJA */
    background-color: #fff;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #e67e22, #f39c12); /* <-- GRADIENTE NARANJA */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-button span {
    flex-grow: 1;
    text-align: center;
}

.login-button:hover {
    background: linear-gradient(to right, #f39c12, #e67e22); /* <-- GRADIENTE NARANJA INVERTIDO */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3); /* <-- SOMBRA NARANJA */
}

.contact-info {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-info p {
    color: #666;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: #d35400; /* <-- COLOR NARANJA OSCURO */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: 10px;
}

.contact-link i {
    margin-right: 8px;
}

.contact-link:hover {
    color: #e67e22; /* <-- COLOR NARANJA */
    text-decoration: underline;
}

#error-message-container {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #c62828;
    display: none;
}

#error-message-container:not(:empty) {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-left {
        min-height: 350px;
        justify-content: center;
    }
    
    .website-info {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 20px 15px;
    }
    
    .app-info h1 {
        font-size: 2.2rem;
    }
}