* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, white, #C62828, #1565C0);
}

.container {
    display: flex;
    width: 80%;
    height: 80vh;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.left-side {
    width: 50%;
    background: linear-gradient(135deg, white, #C62828, #1565C0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-content {
    text-align: center;
    color: white;
}

.left-content h1 {
    font-size: 65px;
    margin-bottom: 20px;
}

.left-content p {
    font-size: 34px;
    margin-bottom: 10px;
}

.right-side {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.login-box {
    width: 80%;
    text-align: center;
}

.user-img {
    margin-bottom: 20px;
}

.user-img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #C62828;
}

.login-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.input-box {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    margin-bottom: 20px;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.input-box i {
    padding-left: 10px;
    color: #999;
    cursor: pointer;
}

.input-box input {
    border: none;
    outline: none;
    background: none;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    color: #333;
}

.input-box #togglePassword {
    position: absolute;
    right: 20px;
    color: #999;
    cursor: pointer;
}

.login-btn {
    background: linear-gradient(135deg, #C62828, #1565C0);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    background: linear-gradient(135deg, #1565C0, #C62828);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.footer-links a {
    color: #C62828;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.alert {
  background-color: #f8d7da;
  color: #842029;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================
   ✅ Estilo minimalista: "Mantener sesión iniciada"
========================================================== */
.recordar-box {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.recordar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.recordar-label:hover {
  background-color: #f4f4f4; /* sutil cambio de fondo */
}

.recordar-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1565C0; /* azul institucional */
  transition: transform 0.2s ease;
}

.recordar-label input[type="checkbox"]:hover {
  transform: scale(1.1); /* leve agrandamiento */
}

.recordar-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Medias queries para pantallas de 1366px a 1024px */
@media (max-width: 1366px) and (min-width: 1024px) {
    .container {
        width: 70%;
        height: 80vh;
    }

    .left-side {
        width: 50%;
    }

    .right-side {
        width: 50%;
    }

    .left-content h1 {
        font-size: 40px;
    }

    .left-content p {
        font-size: 24px;
    }

    .login-box {
        width: 90%;
    }

    .user-img img {
        width: 80px;
        height: 80px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .input-box input {
        font-size: 14px;
    }

    .login-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .recordar-text {
        font-size: 12px;
    }
}

/* Medias queries para pantallas de 1024px a 768px */
@media (max-width: 1024px) and (min-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
        height: auto;
    }

    .left-side, .right-side {
        width: 100%;
    }

    .left-content h1 {
        font-size: 40px;
    }

    .left-content p {
        font-size: 24px;
    }

    .login-box {
        width: 80%;
    }

    .user-img img {
        width: 70px;
        height: 70px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .input-box input {
        font-size: 15px;
    }

    .login-btn {
        font-size: 15px;
        padding: 10px 20px;
    }

    .alert {
        font-size: 0.7rem;
    }
}

/* Medias queries para pantallas de 768px a 480px */
@media (max-width: 768px) and (min-width: 480px) {
    .left-content h1 {
        font-size: 35px;
    }

    .left-content p {
        font-size: 20px;
    }

    .user-img img {
        width: 60px;
        height: 60px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .input-box input {
        font-size: 14px;
    }

    .login-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Medias queries para pantallas menores a 480px */
@media (max-width: 480px) {
    .left-content h1 {
        font-size: 30px;
    }

    .left-content p {
        font-size: 18px;
    }

    .user-img img {
        width: 50px;
        height: 50px;
    }

    .login-header h2 {
        font-size: 18px;
    }

    .input-box input {
        font-size: 13px;
    }

    .login-btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    .container {
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .left-side, .right-side {
        width: 100%;
    }

    .left-content {
        padding: 20px;
    }
}
