/* =======================================================
   PORTAL.CSS
   Estilos exclusivos del Portal de Clientes / Login
   Evita conflicto con style.css
   Colores Corporativos: #8F191D
======================================================= */

/* VARIABLES */
:root {
    --red: #8F191D;
    --white: #fff;
    --light: #f7f7f7;
    --shadow: 0 6px 25px rgba(0,0,0,0.20);
}

/* =======================================================
   ÁREA GENERAL DEL LOGIN
======================================================= */

.login-area {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    background: var(--light);
}

/* =======================================================
   TARJETA DEL LOGIN (FORMULARIO)
======================================================= */

.login-card {
    width: 420px;
    background: var(--white);
    border-radius: 18px;
    padding: 40px 35px;
    border-top: 8px solid var(--red);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

/* =======================================================
   ICONO ANIMADO
======================================================= */

.login-icon {
    width: 90px;
    height: 90px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    animation: pulseLogin 1.6s infinite ease-in-out;
}

@keyframes pulseLogin {
    0% { transform: scale(1); }
    50% { transform: scale(1.10); }
    100% { transform: scale(1); }
}

/* =======================================================
   TÍTULOS
======================================================= */

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--red);
    margin: 10px 0 4px;
    font-family: "Poppins", sans-serif;
}

.login-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    font-family: "Roboto", sans-serif;
}

/* =======================================================
   CAMPOS DE FORMULARIO
======================================================= */

.login-field {
    position: relative;
    margin-bottom: 22px;
}

.login-field i {
    position: absolute;
    top: 12px;
    left: 12px;
    color: var(--red);
    font-size: 18px;
}

.login-field input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border-radius: 8px;
    border: 1px solid #cfcfcf;
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    outline: none;
    transition: 0.25s ease;
}

.login-field input:focus {
    border-color: var(--red);
    box-shadow: 0 0 6px rgba(143,25,29,0.40);
}

/* =======================================================
   BOTÓN LOGIN
======================================================= */

.btn-login {
    width: 100%;
    background: var(--red);
    color: var(--white);
    padding: 13px;
    font-size: 17px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: .25s ease;
    font-family: "Poppins", sans-serif;
}

.btn-login:hover {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--red);
}

/* =======================================================
   MENSAJE DE ERROR
======================================================= */

.login-error {
    background: var(--red);
    color: var(--white);
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* =======================================================
   RESPONSIVE
======================================================= */

@media (max-width: 480px) {
    .login-card {
        width: 92%;
        padding: 30px 22px;
    }

    .login-icon {
        width: 78px;
        height: 78px;
        font-size: 32px;
    }

    .login-title {
        font-size: 22px;
    }

    .btn-login {
        font-size: 16px;
    }
}

/* SIN ESPACIOS EN TARJETA */

.login-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.login-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* END OF FILE */
