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

:root {
  --bg: var(--marca-fondo, #f8fafc);
  --bg-2: var(--marca-fondo-secundario, #eef6fb);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: var(--marca-superficie, #ffffff);
  --text: var(--marca-texto, #1e293b);
  --muted: var(--marca-texto-suave, #64748b);
  --soft: var(--marca-acento-claro, #bfe7fa);
  --line: var(--marca-linea, rgba(10, 38, 71, 0.11));
  --dark: var(--marca-primario, #0a2647);
  --dark-2: var(--marca-primario-claro, #1b3b5c);
  --gold: var(--marca-primario, #0a2647);
  --gold-2: var(--marca-acento, #2d9cdb);
  --success: #2f7853;
  --shadow: 0 30px 90px rgba(var(--marca-primario-rgb, 10, 38, 71), 0.13);
  --shadow-soft: 0 18px 50px rgba(var(--marca-primario-rgb, 10, 38, 71), 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.fondo-suave {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--marca-acento-rgb, 45, 156, 219), .22), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .86), transparent 30%),
    radial-gradient(circle at 70% 84%, rgba(var(--marca-primario-rgb, 10, 38, 71), .12), transparent 32%),
    linear-gradient(135deg, #e8f3fa 0%, var(--bg) 52%, #dcebf4 100%);
}

.fondo-suave::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--marca-primario-rgb, 10, 38, 71), .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--marca-primario-rgb, 10, 38, 71), .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.particulas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.particula {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: rgba(var(--marca-acento-rgb, 45, 156, 219), .22);
  box-shadow: 0 0 26px rgba(var(--marca-acento-rgb, 45, 156, 219), .20);
  animation: subir var(--duration) linear infinite;
  animation-delay: var(--delay);
  left: var(--left);
  bottom: -40px;
}

@keyframes subir {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: .75; }
  to { transform: translateY(-110vh) translateX(32px); opacity: 0; }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(380px, 1.08fr);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.36);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.72), transparent 34%),
    radial-gradient(circle at 85% 82%, rgba(var(--marca-acento-rgb, 45, 156, 219), .17), transparent 34%),
    linear-gradient(145deg, rgba(238,247,252,.96), rgba(207,229,242,.82));
  color: var(--dark);
  overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.brand-panel::before {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -80px;
  background: rgba(var(--marca-acento-rgb, 45, 156, 219), .13);
  filter: blur(4px);
}

.brand-panel::after {
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: 40px;
  border: 1px solid rgba(var(--marca-acento-rgb, 45, 156, 219), .15);
  background: rgba(255,255,255,.24);
}

.brand-top,
.brand-content,
.motivacion-grid {
  position: relative;
  z-index: 2;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
}

.brand-logo svg {
  width: 42px;
  height: 42px;
}

.brand-top h1 {
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-top h1 span {
  color: var(--gold);
}

.brand-top p {
  margin-top: 3px;
  font-size: .82rem;
  color: rgba(var(--marca-primario-rgb, 10, 38, 71),.62);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(var(--marca-acento-rgb, 45, 156, 219),.10);
  color: var(--gold);
  border: 1px solid rgba(var(--marca-acento-rgb, 45, 156, 219),.18);
  font-size: .76rem;
  font-weight: 700;
}

.brand-content h2 {
  max-width: 420px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.06em;
}

.brand-content p {
  max-width: 420px;
  margin-top: 20px;
  color: rgba(var(--marca-primario-rgb, 10, 38, 71),.68);
  line-height: 1.7;
  font-size: .98rem;
}

.motivacion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.motivacion-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(var(--marca-acento-rgb, 45, 156, 219),.13);
}

.motivacion-card strong {
  display: block;
  font-size: .95rem;
  letter-spacing: -.03em;
}

.motivacion-card span {
  display: block;
  margin-top: 5px;
  color: rgba(var(--marca-primario-rgb, 10, 38, 71),.62);
  font-size: .78rem;
}

.access-panel {
  display: grid;
  place-items: center;
  padding: 46px;
}

.access-content {
  width: min(440px, 100%);
  padding: 8px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.secure-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(39, 123, 79, .10);
  color: var(--success);
  font-size: .78rem;
  font-weight: 700;
}

.secure-badge svg {
  width: 16px;
  height: 16px;
}

.access-header h2 {
  font-size: 2rem;
  letter-spacing: -.05em;
  color: var(--dark);
}

.access-header p {
  margin-top: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  color: var(--dark-2);
  font-size: .86rem;
  font-weight: 700;
}

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

.input-wrap > svg {
  position: absolute;
  left: 15px;
  width: 19px;
  height: 19px;
  color: var(--soft);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 46px;
  border-radius: 16px;
  border: 1px solid rgba(var(--marca-primario-rgb, 10, 38, 71),.13);
  background: rgba(255,255,255,.76);
  color: var(--text);
  outline: none;
  font: inherit;
  font-weight: 600;
  transition: .22s ease;
}

.input-wrap input::placeholder {
  color: rgba(var(--marca-primario-rgb, 10, 38, 71),.56);
}

.input-wrap:focus-within input {
  border-color: rgba(var(--marca-acento-rgb, 45, 156, 219),.58);
  box-shadow: 0 0 0 4px rgba(var(--marca-acento-rgb, 45, 156, 219),.12);
  background: #fff;
}

.input-wrap:focus-within > svg {
  color: var(--gold);
}

.password-toggle {
  position: absolute;
  right: 13px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s ease;
}

.password-toggle:hover {
  background: rgba(var(--marca-acento-rgb, 45, 156, 219),.10);
  color: var(--gold);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .84rem;
  user-select: none;
  cursor: pointer;
}

.remember input {
  display: none;
}

.remember span {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid rgba(var(--marca-primario-rgb, 10, 38, 71),.20);
  background: #fff;
  position: relative;
}

.remember input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
}

.remember input:checked + span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-options a {
  color: var(--gold);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
}

.login-button {
  height: 54px;
  border: none;
  border-radius: 17px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 35px rgba(var(--marca-primario-rgb, 10, 38, 71),.22);
  transition: .24s ease;
}

.login-button svg {
  width: 19px;
  height: 19px;
  transition: .24s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(var(--marca-primario-rgb, 10, 38, 71),.28);
}

.login-button:hover svg {
  transform: translateX(4px);
}

.login-button.loading {
  pointer-events: none;
  opacity: .82;
}

.helper-text {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .login-page {
    padding: 18px;
    align-items: start;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .brand-panel {
    min-height: 330px;
    padding: 28px;
  }

  .brand-content {
    margin: 34px 0;
  }

  .brand-content h2 {
    font-size: 2.15rem;
  }

  .access-panel {
    padding: 24px;
  }

  .access-content {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 10px;
  }

  .login-shell {
    border-radius: 24px;
  }

  .brand-panel {
    padding: 22px;
    min-height: 290px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-top h1 {
    font-size: 1.05rem;
  }

  .brand-top p {
    font-size: .74rem;
  }

  .brand-content h2 {
    font-size: 1.75rem;
  }

  .brand-content p {
    font-size: .9rem;
  }

  .motivacion-grid {
    grid-template-columns: 1fr;
  }

  .access-panel {
    padding: 14px;
  }

  .access-content {
    padding: 24px 18px;
    border-radius: 23px;
  }

  .access-header h2 {
    font-size: 1.65rem;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }
}


.motivacion-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.motivacion-icono {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--marca-acento-rgb, 45, 156, 219),.10);
  color: var(--gold);
}

.motivacion-icono svg {
  width: 20px;
  height: 20px;
}

