@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Tipografía más moderna */
    background-color: #f4f6f8; /* Un gris muy tenue de fondo */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Sombra suave y moderna */
    text-align: center;
}

/* --- LOGO --- */
.logo-container {
    margin-bottom: 25px;
}

.logo-img {
    max-width: 120px; /* Ajusta según el tamaño real de tu imagen */
    height: auto;
}

/* --- TEXTOS --- */
.header-text {
    margin-bottom: 35px;
}

.header-text h1 {
    color: #001A33; /* Azul muy oscuro casi negro */
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.header-text p {
    color: #64748B; /* Gris azulado */
    font-size: 14px;
    line-height: 1.4;
}

/* --- INPUTS --- */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px; /* Espacio a la izquierda para el icono */
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #D50000; /* Rojo Cruz Roja al enfocar */
    box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.1);
}

/* Iconos dentro de los inputs */
.input-icon {
    position: absolute;
    display: flex;
    align-items: center;
}

.input-icon.left {
    left: 14px;
    pointer-events: none; /* Para que el clic pase al input */
}

.input-icon.right {
    right: 14px;
}

.cursor-pointer {
    cursor: pointer;
}

/* --- BOTÓN --- */
.btn-primary {
    width: 100%;
    background-color: #D50000; /* Rojo Oficial */
    color: white;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(213, 0, 0, 0.2);
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #b70000;
}

/* --- FOOTER Y LINK --- */
.form-footer {
    margin-top: 25px;
    margin-bottom: 40px;
}

.forgot-link {
    color: #D50000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.copyright p {
    color: #94A3B8;
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive básico para que no se rompa en celus viejitos */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}