﻿:root {
  --brand: #f55147;
  --brand-dark: #d93f36;
  --brand-soft: #fff0ee;
  --cat-black: #111111;
  --ink: #1d2433;
  --muted: #6d7586;
  --line: #e7eaf0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --shadow: 0 26px 70px rgba(29, 36, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(245, 81, 71, 0.16), transparent 26rem),
    linear-gradient(135deg, #fff8f7 0%, #f7f9fc 47%, #eef3f8 100%);
}

.login-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(155deg, rgba(245, 81, 71, 0.96), rgba(217, 63, 54, 1)),
    var(--brand);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.is-loading .login-loader,
body.is-submitting .login-loader {
  opacity: 1;
  visibility: visible;
}

.loader-logo-card {
  width: clamp(150px, 42vw, 220px);
  min-height: clamp(86px, 22vw, 118px);
  display: grid;
  place-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 45px rgba(91, 23, 20, 0.24);
}

.loader-logo-card img,
.brand-mark img,
.mobile-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.login-loader strong {
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.login-loader span {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.login-page {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}

.login-shell {
  width: min(1060px, 100%);
  height: min(650px, calc(100dvh - 64px));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(245, 81, 71, 0.94), rgba(217, 63, 54, 0.9)),
    radial-gradient(circle at 86% 12%, rgba(17, 17, 17, 0.22), transparent 10rem),
    url("../../img/Fondo.svg") center 54% / 78% no-repeat;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 36, 51, 0.06), rgba(29, 36, 51, 0.36));
  pointer-events: none;
}

.brand-mark,
.cat-lines,
.visual-copy,
.visual-panel {
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 184px;
  min-height: 98px;
  display: grid;
  place-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(126, 27, 23, 0.24);
}

.cat-lines {
  position: absolute;
  top: 62px;
  right: 42px;
  display: grid;
  gap: 10px;
  width: 118px;
  opacity: 0.34;
}

.cat-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--cat-black);
}

.cat-lines span:nth-child(2) {
  width: 82%;
  margin-left: auto;
}

.cat-lines span:nth-child(3) {
  width: 58%;
  margin-left: auto;
}

.visual-copy {
  max-width: 470px;
}

.eyebrow,
.login-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  padding: 8px 12px;
  color: #fff;
  background: rgba(17, 17, 17, 0.18);
}

.visual-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
}

.visual-copy p {
  max-width: 430px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.visual-panel {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.panel-row.active {
  background: rgba(17, 17, 17, 0.22);
  color: #fff;
}

.panel-row i {
  width: 22px;
  text-align: center;
}

.login-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 50px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
    var(--surface);
}

.mobile-logo {
  display: none;
  width: 156px;
  margin-bottom: 26px;
}

.login-heading {
  margin-bottom: 30px;
}

.login-kicker {
  padding: 7px 11px;
  color: var(--cat-black);
  background: var(--brand-soft);
}

.login-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.05;
}

.login-heading p,
.support-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #343b49;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field-control:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 81, 71, 0.14);
}

.field-control > i {
  width: 50px;
  flex: 0 0 50px;
  color: var(--brand);
  text-align: center;
}

.field-control input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.field-control input::placeholder {
  color: #98a0ad;
}

.password-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  margin-right: 6px;
  border: 0;
  border-radius: 12px;
  color: #7b8494;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-login {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 16px 28px rgba(245, 81, 71, 0.28);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 19px 34px rgba(245, 81, 71, 0.34);
}

.support-text {
  margin-top: 24px;
  font-size: 0.92rem;
  text-align: center;
}

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

  .login-shell {
    height: calc(100dvh - 44px);
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .login-visual {
    min-height: 220px;
    padding: 28px;
  }

  .brand-mark {
    width: 160px;
    min-height: 86px;
    padding: 15px 18px;
  }

  .cat-lines {
    top: 48px;
    right: 28px;
  }

  .visual-copy {
    margin-top: 28px;
  }

  .visual-copy h1 {
    font-size: 3rem;
  }

  .visual-panel {
    display: none;
  }

  .login-form-wrap {
    padding: 30px 28px;
  }
}

@media (max-width: 560px) {
  body {
    background: linear-gradient(180deg, #fff7f6 0%, #f5f7fb 100%);
  }

  .login-page {
    height: 100dvh;
    padding: 0;
  }

  .login-shell {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-visual {
    display: none;
  }

  .login-form-wrap {
    align-items: center;
    justify-content: center;
    height: 100dvh;
    padding: clamp(14px, 4dvh, 28px) 22px;
    text-align: center;
  }

  .mobile-logo {
    display: block;
    width: clamp(190px, 66vw, 260px);
    margin: 0 auto clamp(12px, 3dvh, 20px);
  }

  .login-heading {
    width: min(100%, 360px);
    margin-bottom: clamp(14px, 3dvh, 22px);
  }

  .login-kicker {
    margin-inline: auto;
  }

  .login-heading h2 {
    margin-top: 12px;
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .login-heading p {
    font-size: 0.95rem;
  }

  .login-form {
    width: min(100%, 360px);
    gap: 14px;
    text-align: left;
  }

  .field-group {
    gap: 7px;
  }

  .field-group label {
    font-size: 0.88rem;
  }

  .field-control {
    min-height: 52px;
    border-radius: 14px;
  }

  .field-control > i {
    width: 46px;
    flex-basis: 46px;
  }

  .field-control input {
    height: 50px;
    font-size: 0.98rem;
  }

  .password-toggle {
    width: 40px;
    height: 40px;
  }

  .btn-login {
    min-height: 52px;
    margin-top: 6px;
    border-radius: 14px;
  }

  .support-text {
    width: min(100%, 340px);
    margin-top: clamp(16px, 4dvh, 24px);
    font-size: 0.86rem;
  }
}

@media (max-width: 380px), (max-height: 640px) {
  .login-form-wrap {
    padding-block: 16px;
  }

  .mobile-logo {
    width: 170px;
    margin-bottom: 10px;
  }

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

  .login-heading h2 {
    margin-block: 9px 5px;
    font-size: 1.85rem;
  }

  .login-heading p,
  .support-text {
    font-size: 0.82rem;
  }

  .login-form {
    gap: 11px;
  }

  .field-control,
  .btn-login {
    min-height: 48px;
  }

  .field-control input {
    height: 46px;
  }

  .support-text {
    margin-top: 12px;
  }
}

@media (max-width: 560px) and (max-height: 560px) {
  .login-kicker,
  .support-text {
    display: none;
  }

  .mobile-logo {
    width: 150px;
    margin-bottom: 8px;
  }

  .login-heading {
    margin-bottom: 14px;
  }

  .login-heading h2 {
    margin-top: 0;
  }
}


