:root {
  --navy: #063847;
  --navy-soft: #0a4f61;
  --teal: #0b9fba;
  --orange: #f47a24;
  --paper: #eef2f1;
  --white: #ffffff;
  --ink: #183945;
  --muted: #718086;
  --line: #d8dedb;
  --focus-ring: 0 0 0 3px rgba(11, 159, 186, .18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(11,159,186,.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #f6f8f7 0%,
      #edf1ef 100%
    );

  color: var(--ink);

  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}


/* =====================================================
   PAGE
   ===================================================== */

.login-page {
  width: 100%;
  min-height: 100vh;

  padding:
    34px
    clamp(24px, 5vw, 76px)
    48px;
}


/* VOLVER AL HOME */

.back-home {
  width: fit-content;

  margin: 0 0 22px;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #244b59;

  font-size: 14px;
  font-weight: 600;

  transition:
    color .2s ease,
    transform .2s ease;
}

.back-home:hover {
  color: var(--orange);
  transform: translateX(-2px);
}

.back-home:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 5px;
}


/* =====================================================
   LOGIN SHELL
   ===================================================== */

.login-shell {
  width: min(1180px, 100%);

  min-height: 690px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;

  overflow: hidden;

  background: var(--white);

  border-radius: 14px;

  box-shadow:
    0 24px 70px rgba(18, 56, 70, .15);
}


/* =====================================================
   PANEL IZQUIERDO / BRAND
   ===================================================== */

.login-brand {
  position: relative;

  min-width: 0;

  overflow: hidden;

  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(4,49,63,.96) 0%,
      rgba(4,49,63,.89) 40%,
      rgba(4,49,63,.68) 68%,
      rgba(4,49,63,.36) 100%
    ),
    url("hero-industrial.png");

  background-size: cover;
  background-position: 63% center;
  background-repeat: no-repeat;
}


/* OVERLAY DE PROFUNDIDAD */

.login-brand::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 15%,
      rgba(11,159,186,.10),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.04) 50%,
      rgba(0,0,0,.25) 100%
    );

  pointer-events: none;
}


.login-brand-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(6,56,71,.12),
      transparent
    );

  pointer-events: none;
}


/* CONTENIDO */

.login-brand-content {
  position: relative;
  z-index: 2;

  min-height: 100%;

  padding:
    46px
    44px
    42px;

  display: flex;
  flex-direction: column;
}


/* =====================================================
   LOGO
   ===================================================== */

.login-logo {
  display: flex;
  align-items: center;

  gap: 16px;
}

.login-logo img {
  width: 72px;
  height: 72px;

  object-fit: contain;
}

.login-logo div {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.login-logo strong {
  color: #ffffff;

  font-family: "Manrope", sans-serif;

  font-size: 30px;
  font-weight: 800;

  letter-spacing: .025em;
}

.login-logo span {
  margin-top: 3px;

  color: rgba(255,255,255,.88);

  font-size: 12px;
}


/* =====================================================
   COPY IZQUIERDA
   ===================================================== */

.login-brand-main {
  margin-top: 58px;
}

.brand-line {
  width: 52px;
  height: 4px;

  margin-bottom: 28px;

  display: block;

  background: var(--orange);

  border-radius: 999px;
}

.brand-eyebrow {
  color: var(--orange);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .17em;
}

.login-brand h1 {
  max-width: 510px;

  margin:
    18px
    0
    20px;

  color: #ffffff;

  font-family: "Manrope", sans-serif;

  font-size: clamp(42px, 4vw, 58px);
  font-weight: 800;

  line-height: 1.02;

  letter-spacing: -.04em;
}

.login-brand h1 em {
  display: block;

  color: var(--orange);

  font-style: normal;
}

.login-brand-main > p {
  max-width: 455px;

  margin: 0;

  color: rgba(255,255,255,.90);

  font-size: 14px;

  line-height: 1.62;
}


/* =====================================================
   BENEFICIOS
   ===================================================== */

.login-benefits {
  margin-top: 42px;

  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.login-benefit {
  min-width: 0;
}

.benefit-icon {
  width: 40px;
  height: 40px;

  margin-bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px
    solid
    rgba(255,255,255,.60);

  border-radius: 7px;

  color: #ffffff;

  font-size: 18px;
}

.login-benefit strong,
.login-benefit small {
  display: block;
}

.login-benefit strong {
  color: #ffffff;

  font-size: 12px;
  font-weight: 700;
}

.login-benefit small {
  margin-top: 3px;

  color: rgba(255,255,255,.72);

  font-size: 11px;
}


/* =====================================================
   FOOTER PANEL IZQUIERDO
   ===================================================== */

.login-brand-footer {
  margin-top: auto;

  padding-top: 40px;
}

.login-brand-footer > span {
  width: 40px;
  height: 3px;

  display: block;

  background: var(--orange);
}

.login-brand-footer p {
  margin:
    12px
    0
    0;

  color: rgba(255,255,255,.86);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .18em;

  line-height: 1.55;
}


/* =====================================================
   PANEL DERECHO
   ===================================================== */

.login-card {
  min-width: 0;

  display: flex;
  align-items: center;

  background: #ffffff;
}

.login-card-inner {
  width: 100%;
  max-width: 545px;

  margin: 0 auto;

  padding:
    58px
    54px;
}


/* =====================================================
   CABECERA LOGIN
   ===================================================== */

.eyebrow {
  color: var(--teal);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .16em;
}

.login-card h2 {
  margin:
    14px
    0
    8px;

  color: #102f3a;

  font-family: "Manrope", sans-serif;

  font-size: 38px;
  font-weight: 800;

  letter-spacing: -.035em;
}

.login-intro {
  margin:
    0
    0
    40px;

  color: #52676f;

  font-size: 15px;

  line-height: 1.55;
}


/* =====================================================
   ERROR
   ===================================================== */

.login-error {
  margin:
    0
    0
    22px;

  padding:
    13px
    14px;

  border-left:
    3px
    solid
    #c45e50;

  border-radius: 4px;

  background: #fbeae7;

  color: #873e34;

  font-size: 12px;

  line-height: 1.45;
}


/* =====================================================
   FORMULARIO
   ===================================================== */

.login-card form {
  display: grid;

  gap: 20px;
}

.login-field {
  display: grid;

  gap: 8px;

  color: #173845;

  font-size: 12px;
  font-weight: 700;
}

.input-wrapper {
  position: relative;
}

.login-card input {
  width: 100%;
  height: 56px;

  padding:
    0
    16px
    0
    50px;

  border:
    1px
    solid
    #cfd9dc;

  border-radius: 7px;

  background: #ffffff;

  color: var(--ink);

  font-size: 13px;

  outline: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.login-card input::placeholder {
  color: #9ba8ad;
}

.login-card input:hover {
  border-color: #b8c7cc;
}

.login-card input:focus {
  border-color: var(--teal);

  box-shadow: var(--focus-ring);
}


/* ICONOS INPUT */

.input-icon {
  position: absolute;

  left: 16px;
  top: 50%;

  transform:
    translateY(-50%);

  color: #607b85;

  font-size: 20px;

  pointer-events: none;
}

.input-lock {
  font-size: 17px;
}


/* =====================================================
   OLVIDÉ CONTRASEÑA
   ===================================================== */

.forgot-row {
  margin-top: -7px;

  display: flex;

  justify-content: flex-end;
}

.forgot-row a {
  color: #06718a;

  font-size: 12px;
  font-weight: 600;

  text-decoration: underline;

  text-underline-offset: 2px;

  transition:
    color .2s ease;
}

.forgot-row a:hover {
  color: var(--orange);
}


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

.login-submit {
  height: 56px;

  margin-top: 10px;

  padding:
    0
    20px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 28px;

  border:
    1px
    solid
    var(--navy);

  border-radius: 7px;

  background:
    linear-gradient(
      90deg,
      #063847 0%,
      #0a4f61 100%
    );

  color: #ffffff;

  font-size: 15px;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform .16s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.login-submit:hover {
  background:
    linear-gradient(
      90deg,
      #0a4758 0%,
      #0d5a6d 100%
    );

  transform:
    translateY(-1px);

  box-shadow:
    0 7px 18px rgba(6,56,71,.18);
}

.login-submit:active {
  transform:
    translateY(0)
    scale(.99);
}

.login-submit:focus-visible {
  outline: none;

  box-shadow: var(--focus-ring);
}


/* =====================================================
   REGISTRO
   ===================================================== */

.register-block {
  margin-top: 38px;

  padding-top: 28px;

  border-top:
    1px
    solid
    #e2e7e8;

  display: flex;
  flex-direction: column;

  gap: 9px;
}

.register-block > span {
  color: #183945;

  font-size: 12px;
  font-weight: 600;
}

.register-block a {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: 12px;

  color: var(--orange);

  font-size: 14px;
  font-weight: 800;

  transition:
    color .2s ease,
    transform .2s ease;
}

.register-block a:hover {
  color: #d9681e;

  transform:
    translateX(2px);
}


/* =====================================================
   FOCUS ACCESIBLE
   ===================================================== */

.register-block a:focus-visible,
.forgot-row a:focus-visible {
  outline: none;

  box-shadow: var(--focus-ring);

  border-radius: 4px;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 900px) {

  .login-page {
    padding:
      28px
      24px
      40px;
  }

  .login-shell {
    min-height: 620px;
  }

  .login-brand-content {
    padding:
      40px
      34px
      36px;
  }

  .login-brand-main {
    margin-top: 46px;
  }

  .login-logo img {
    width: 60px;
    height: 60px;
  }

  .login-logo strong {
    font-size: 24px;
  }

  .login-brand h1 {
    font-size: 40px;
  }

  .login-brand-main > p {
    font-size: 13px;
  }

  .login-benefits {
    gap: 12px;
  }

  .login-card-inner {
    padding:
      44px
      34px;
  }

  .login-card h2 {
    font-size: 31px;
  }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

  .login-page {
    padding:
      20px
      16px
      30px;
  }

  .back-home {
    margin-bottom: 16px;

    font-size: 13px;
  }

  .login-shell {
    min-height: 0;

    grid-template-columns: 1fr;

    border-radius: 10px;
  }


  /* PANEL IZQUIERDO */

  .login-brand {
    min-height: auto;

    background-position:
      center 55%;
  }

  .login-brand-content {
    padding:
      28px
      24px
      30px;
  }

  .login-logo img {
    width: 50px;
    height: 50px;
  }

  .login-logo strong {
    font-size: 20px;
  }

  .login-logo span {
    font-size: 10px;
  }

  .login-brand-main {
    margin-top: 34px;
  }

  .brand-line {
    margin-bottom: 20px;
  }

  .brand-eyebrow {
    font-size: 9px;
  }

  .login-brand h1 {
    max-width: 520px;

    font-size: 34px;

    line-height: 1.06;
  }

  .login-brand-main > p {
    max-width: 520px;

    font-size: 13px;
  }

  .login-benefits {
    margin-top: 30px;

    grid-template-columns:
      repeat(3, 1fr);
  }

  .benefit-icon {
    width: 36px;
    height: 36px;

    font-size: 17px;
  }

  .login-brand-footer {
    display: none;
  }


  /* PANEL DERECHO */

  .login-card-inner {
    max-width: none;

    padding:
      36px
      24px
      40px;
  }

  .login-card h2 {
    font-size: 30px;
  }

  .login-intro {
    margin-bottom: 30px;

    font-size: 13px;
  }
}


/* =====================================================
   MOBILE CHICO
   ===================================================== */

@media (max-width: 480px) {

  .login-page {
    padding:
      16px
      12px
      24px;
  }

  .login-brand-content {
    padding:
      24px
      20px
      26px;
  }

  .login-logo img {
    width: 44px;
    height: 44px;
  }

  .login-logo strong {
    font-size: 18px;
  }

  .login-logo span {
    font-size: 9px;
  }

  .login-brand-main {
    margin-top: 28px;
  }

  .login-brand h1 {
    font-size: 30px;
  }

  .login-brand-main > p {
    font-size: 12px;
  }


  /* BENEFICIOS APILADOS */

  .login-benefits {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .login-benefit {
    display: grid;

    grid-template-columns:
      38px
      1fr;

    grid-template-rows:
      auto
      auto;

    column-gap: 10px;
  }

  .benefit-icon {
    grid-row:
      1
      /
      3;

    margin-bottom: 0;
  }

  .login-benefit strong,
  .login-benefit small {
    align-self: center;
  }


  /* FORM */

  .login-card-inner {
    padding:
      32px
      20px
      34px;
  }

  .login-card h2 {
    font-size: 27px;
  }

  .login-card input,
  .login-submit {
    height: 50px;
  }

  .forgot-row {
    justify-content: flex-start;
  }

  .register-block {
    margin-top: 32px;
  }
}


/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}