@import url('aiko.control.css');

/* ===============================
  LOGIN REDISEÑO 2026; Iván Villalóz TKZ
=================================*/

.login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---------------- LEFT SIDE ---------------- */

/* AUTOFILL BACKGROUND FIX */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--color-inputs) inset !important;
  -webkit-text-fill-color: var(--color-terciario) !important;
  caret-color: var(--color-terciario);
  transition: background-color 9999s ease-in-out 0s;
}

.login-left {
  width: 65%;
  background-image: url('../../img/Fondo_Login.jfif');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* texto más ancho */
  align-items: stretch;

  padding: clamp(40px, 6vw, 140px);
}

.login-left-text {
  max-width: 650px;
  align-self: start;
  margin-top: clamp(20px, 1vh, 80px);
  color: #292a2d;
}

.login-left-image {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: end;
  margin-bottom: clamp(20px, 1vh, 80px);
}

.login-complemento {
  width: clamp(320px, 28vw, 520px);
  height: auto;
}

/* Texto */

.login-left-content {
  color: #292a2d;
  max-width: 650px;
  margin-left: clamp(20px, 3vw, 60px);
}

.login-title {
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 900;
  margin-bottom: 15px;
}

.login-subtitle {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}

.login-line {
  width: 130px;
  height: 3px;
  background: #292a2d;
  margin-top: 20px;
}

/* Ilustración */
.login-left-content h1,
.login-left-content h3,
.login-left-content label,
.remember-container label {
  font-weight: 700;
}
/* ---------------- RIGHT SIDE ---------------- */

.login-right {
  width: 35%;
  background: var(--color-cuarto);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 80%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo {
  width: 180px;
  margin: 0 auto 40px auto;
  display: block;
}

/* Inputs */

.input-group-custom {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
  position: relative;
}

.input-group-custom label {
  color: var(--color-terciario);
  font-weight: 700; /* 👈 más fuerte */
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.input-group-custom input {
  background: var(--color-inputs);
  border: none;
  padding: 12px;
  outline: none;
  color: var(--color-terciario); /* 👈 texto escrito */
  font-weight: 600;
}

.input-group-custom input::placeholder {
  color: rgba(39, 146, 178, 0.5);
}

.input-group-custom input {
  caret-color: var(--color-terciario);
}

/* Password icon */

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  bottom: 11px;
  cursor: pointer;
  color: var(--color-iconos-i);
  font-size: 25px;
  transition: 0.3s ease;
}

.toggle-password:hover {
  transform: scale(1.1);
}

/* Remember */

.remember-container {
  display: flex;
  justify-content: flex-start; /* 👈 lo manda a la derecha */
  align-items: center;
  margin-top: 10px;
  margin-bottom: 30px;
  gap: 10px;
}

.remember-container input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-bordes);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.remember-container input[type='checkbox']::before {
  content: '';
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background-color: white;
}

.remember-container input[type='checkbox']:checked {
  background-color: var(--color-bordes);
}

.remember-container input[type='checkbox']:checked::before {
  transform: scale(1);
}

.remember-container input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-container label {
  color: #666666;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.remember-container input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

/* Button */

.btn-iniciar {
  background: var(--color-iniciar);
  color: #fff;
  border: none;
  padding: 5px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  width: 100%;
  border-radius: 10px; /* 👈 redondeado */
  margin-top: 30px; /* 👈 más abajo */
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 25px;
  letter-spacing: 1px;
}

.btn-iniciar:hover {
  opacity: 0.9;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1200px) {
  .login-left {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .login-complemento {
    justify-self: center;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-left {
    width: 100%;
    min-height: 50vh;
  }

  .login-right {
    width: 100%;
    min-height: 50vh;
  }
}
