/* Login del tema Gotta, a sangre (viewport completo).
   Mitad izquierda: fondo configurable. Mitad derecha: formulario sin tarjeta.
   Paleta #5980a6 / #1d2d3d / #2f6d4f y Barlow. El POST sigue en login.html. */

html.theme-gotta body.wl-body.login-body {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #fff;
  color: var(--tg-texto);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  place-items: stretch;
}

.wl-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.wl-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 56px 56px 64px;
  background-color: var(--tg-oscuro);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.wl-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--tg-oscuro, #1d2d3d) 18%, transparent) 0%,
    color-mix(in srgb, var(--tg-oscuro, #1d2d3d) 28%, transparent) 46%,
    color-mix(in srgb, var(--tg-oscuro, #1d2d3d) 88%, transparent) 100%
  );
  pointer-events: none;
}

.wl-aside-copy {
  position: relative;
  z-index: 1;
}

.wl-aside-copy {
  max-width: 36rem;
}

.wl-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

html.theme-gotta body.wl-body .wl-aside h1 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.2vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: none;
}

.wl-lead {
  margin: 16px 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.wl-lead[hidden] {
  display: none;
}

.wl-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 40px;
  background: #fff;
}

.wl-form {
  width: min(420px, 100%);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.wl-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 28px;
  min-height: 0;
}

.wl-logo {
  display: flex;
  align-items: center;
  flex: none;
}

.wl-logo[hidden] {
  display: none;
}

.wl-logo img {
  display: block;
  width: auto;
  height: 96px;
  max-height: 96px;
  max-width: min(360px, 100%);
  object-fit: contain;
}

.wl-form h2 {
  margin: 0;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: none;
  color: var(--tg-texto);
}

.wl-form .hint {
  margin: -12px 0 22px;
  color: #5c5e61;
  font-size: 13px;
  font-weight: 500;
}

.wl-form label {
  margin-bottom: 14px;
  color: #5c5e61;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wl-form input {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 15px;
  border-radius: 0;
}

.wl-lang {
  position: relative;
  margin: 2px 0 16px;
}

.wl-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--tg-borde);
  border-radius: 0;
  background: #fff;
  color: var(--tg-texto);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.wl-lang-btn:hover,
.wl-lang-btn[aria-expanded="true"] {
  border-color: var(--tg-acento);
  background: #f7f9fb;
}

.wl-globe,
.wl-caret {
  flex: none;
  color: var(--tg-oscuro);
}

.wl-caret {
  margin-left: auto;
}

.wl-lang-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 4;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--tg-borde);
  box-shadow: 0 10px 24px rgba(29, 45, 61, 0.12);
}

.wl-lang-menu[hidden] {
  display: none;
}

.wl-lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--tg-texto);
  padding: 8px 10px;
  cursor: pointer;
}

.wl-lang-menu button:hover,
.wl-lang-menu button[aria-selected="true"] {
  background: #e8eef3;
  color: var(--tg-oscuro);
}

.wl-form .auth-error {
  color: var(--tg-alerta);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 10px;
}

html.theme-gotta body.wl-body .wl-form .btn.prim {
  --btn-ink: var(--tg-acento, #5980a6);
  width: 100%;
  margin-top: 4px;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--btn-ink);
  color: var(--btn-ink);
  border-radius: 0;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

html.theme-gotta body.wl-body .wl-form .btn.prim:hover:not(:disabled),
html.theme-gotta body.wl-body .wl-form .btn.prim:focus-visible:not(:disabled) {
  background: var(--btn-ink);
  border-color: var(--btn-ink);
  color: #fff;
}

html.theme-gotta body.wl-body .wl-form .btn.prim:disabled,
html.theme-gotta body.wl-body .wl-form .btn.prim:disabled:hover {
  background: #fff;
  color: var(--btn-ink);
}

@media (max-width: 860px) {
  .wl-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .wl-aside {
    min-height: 280px;
    height: 42vh;
    padding: 28px 24px;
  }

  html.theme-gotta body.wl-body .wl-aside h1 {
    font-size: 34px;
    max-width: 18ch;
  }

  .wl-lead {
    font-size: 15px;
  }

  .wl-panel {
    min-height: 0;
    align-items: flex-start;
    padding: 32px 20px 48px;
  }

  .wl-form h2 {
    font-size: 34px;
  }

  .wl-title-row {
    margin-bottom: 22px;
  }
}
