:root {
  --rojo: #c91111;
  --rojo-oscuro: #9f0f0f;
  --rojo-suave: #f2d8d8;

  --cafe-900: #85705f;
  --cafe-700: #ad9988;
  --cafe-500: #c8b7a8;
  --cafe-300: #ddd1c4;
  --cafe-200: #e7ddd3;
  --cafe-150: #efe7de;
  --cafe-100: #f5efe8;
  --cafe-050: #faf6f1;

  --cafe-base: #e7ddd2;
  --cafe-suave: #f8f3ed;
  --cafe-borde: #ccbeaf;
  --cafe-texto: #564f48;
  --cafe-texto-suave: #6b635b;

  --negro: #151515;
  --blanco: #ffffff;

  --sombra-xs: 0 6px 14px rgba(45, 31, 20, 0.05);
  --sombra-sm: 0 10px 22px rgba(45, 31, 20, 0.07);
  --sombra: 0 14px 32px rgba(45, 31, 20, 0.08);
  --sombra-md: 0 18px 38px rgba(35, 24, 16, 0.10);

  --radio: 24px;
  --radio-sm: 16px;
}

/* =========================
   CONTENEDOR GENERAL
========================= */

.col-centro {
  width: min(100%, 520px);
  margin: 72px auto;
  padding: 0 20px;
}

/* =========================
   TARJETA LOGIN
========================= */

.login-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.22) 100%), var(--cafe-suave);
  border: 1px solid rgba(120, 98, 82, 0.14);
  border-radius: 28px;
  box-shadow: var(--sombra-md);
  padding: 36px 32px 34px;
}

.login-form h2 {
  margin: 0 0 24px;
  color: var(--negro);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-align: center;
}

/* =========================
   CAMPOS
========================= */

.login-field {
  margin-bottom: 16px;
}

.login-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--cafe-borde);
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
  color: var(--negro);
  font: inherit;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-input::placeholder {
  color: var(--cafe-texto-suave);
}

.login-input:focus {
  outline: none;
  border-color: rgba(201, 17, 17, 0.35);
  background: rgba(255,255,255,0.82);
  box-shadow:
    0 0 0 3px rgba(201, 17, 17, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

/* =========================
   PASSWORD + OJO
========================= */

.login-password {
  position: relative;
}

.login-password .login-input {
  padding-right: 58px;
}

.login-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.login-eye:hover {
  background: rgba(201, 17, 17, 0.06);
}

.login-eye:focus {
  outline: none;
  background: rgba(201, 17, 17, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 17, 17, 0.08);
}

/* Ícono ojo minimal */
.eye {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 14px;
  border: 2px solid var(--cafe-texto-suave);
  border-radius: 14px / 10px;
  transition: border-color 0.18s ease;
}

.eye::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--cafe-texto-suave);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.18s ease;
}

.eye-closed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 26px;
  height: 2px;
  background: var(--cafe-texto-suave);
  transform: rotate(-24deg);
  transform-origin: center;
}

.login-eye:hover .eye,
.login-eye:hover .eye::before,
.login-eye:focus .eye,
.login-eye:focus .eye::before,
.eye-open,
.eye-open::before,
.eye-closed,
.eye-closed::before,
.eye-closed::after {
  border-color: var(--rojo);
  background-color: var(--rojo);
}

.eye-open {
  border-color: var(--rojo);
}

.eye-open::before {
  background: var(--rojo);
}

.eye-open::after {
  display: none;
}

/* =========================
   CHECKBOX
========================= */

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin: 6px 0 22px;
  color: var(--cafe-texto);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid var(--cafe-borde);
  border-radius: 6px;
  background: rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.custom-checkbox input:checked + .checkmark {
  background: var(--rojo);
  border-color: var(--rojo);
  box-shadow: 0 6px 14px rgba(201, 17, 17, 0.14);
}

.custom-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--blanco);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox:hover .checkmark {
  border-color: rgba(201, 17, 17, 0.4);
}

/* =========================
   BOTÓN
========================= */

.login-btn {
  width: 100%;
  min-height: 54px;
  border: 1px solid #2a1212;
  border-radius: 999px;
  background: var(--rojo);
  color: var(--blanco);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(201, 17, 17, 0.16);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.login-btn:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(159, 15, 15, 0.18);
}

.login-btn:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(201, 17, 17, 0.10),
    0 16px 28px rgba(159, 15, 15, 0.18);
}

/* =========================
   AJUSTES DE CONTEXTO
========================= */

.page-template .col-centro,
body .col-centro {
  position: relative;
  z-index: 2;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 780px) {
  .col-centro {
    margin: 48px auto;
    padding: 0 16px;
  }

  .login-form {
    padding: 28px 22px 26px;
    border-radius: 22px;
  }

  .login-form h2 {
    font-size: clamp(26px, 8vw, 34px);
    margin-bottom: 20px;
  }

  .login-input {
    min-height: 52px;
  }

  .login-btn {
    min-height: 52px;
  }
}