/* =========================================================
   WIRTZ DRIVE · LOGIN
   Blanco · Profesional · Minimalista · Responsive
   ========================================================= */

.login-page {
  display: grid;
  place-items: center;

  width: 100%;
  min-height: 100vh;
  padding: 32px;

  color: #17191d;

  background:
    linear-gradient(
      135deg,
      #f4f5f7 0%,
      #ffffff 52%,
      #f1f2f4 100%
    );
}

.login-shell {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(420px, 0.92fr);

  width: min(1180px, 100%);
  min-height: 720px;
  overflow: hidden;

  border: 1px solid #d9dce1;
  border-radius: 28px;

  background: #ffffff;
}

/* =========================================================
   PANEL DE MARCA
   ========================================================= */

.login-brand-panel {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;

  min-width: 0;
  padding: 42px;

  overflow: hidden;

  border-right: 1px solid #dedfe3;

  background:
    linear-gradient(
      145deg,
      #f8f8f9 0%,
      #f0f1f3 100%
    );
}

.login-brand-panel::before {
  position: absolute;
  top: -160px;
  right: -120px;
  z-index: -1;

  width: 420px;
  height: 420px;

  border: 1px solid rgba(225, 38, 48, 0.12);
  border-radius: 50%;

  content: "";
}

.login-brand-panel::after {
  position: absolute;
  right: 48px;
  bottom: 110px;
  z-index: -1;

  width: 240px;
  height: 240px;

  border: 1px solid rgba(29, 32, 38, 0.08);
  border-radius: 50%;

  content: "";
}

.login-brand-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  min-width: 0;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.login-brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  min-width: 46px;
  height: 46px;

  border: 1px solid #d8dade;
  border-radius: 14px;

  color: #202328;

  background: #ffffff;
}

.login-brand__icon svg {
  width: 21px;
  height: 21px;
}

.login-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.login-brand__copy strong {
  color: #17191d;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-brand__copy span {
  color: #737780;

  font-size: 12px;
}

.login-brand-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 34px;
  padding: 0 11px;

  border: 1px solid #d8dade;
  border-radius: 999px;

  color: #676b74;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.72);
}

.login-brand-panel__badge svg {
  width: 15px;
  height: 15px;

  color: #29885c;
}

.login-brand-panel__content {
  max-width: 600px;
}

.login-brand-panel__eyebrow {
  display: inline-flex;

  margin-bottom: 22px;
  padding: 7px 11px;

  border: 1px solid #d4d6da;
  border-radius: 999px;

  color: #676b73;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;

  background: rgba(255, 255, 255, 0.64);
}

.login-brand-panel__content h1 {
  max-width: 650px;
  margin: 0;

  color: #17191d;

  font-size: clamp(42px, 4vw, 64px);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.login-brand-panel__content h1 span {
  color: #e12630;
}

.login-brand-panel__content > p {
  max-width: 540px;
  margin: 25px 0 0;

  color: #686c74;

  font-size: 16px;
  line-height: 1.65;
}

.login-feature-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 38px;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  min-width: 0;
  padding: 15px;

  border: 1px solid #d9dbe0;
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.72);
}

.login-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  min-width: 34px;
  height: 34px;

  border: 1px solid #d9dbe0;
  border-radius: 10px;

  color: #3d424a;

  background: #ffffff;
}

.login-feature__icon svg {
  width: 17px;
  height: 17px;
}

.login-feature > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 0;
}

.login-feature strong {
  color: #24272c;

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

.login-feature span {
  color: #7b7f87;

  font-size: 11px;
  line-height: 1.45;
}

.login-brand-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding-top: 24px;

  border-top: 1px solid #d8dade;

  color: #7b7f87;

  font-size: 11px;
}

/* =========================================================
   PANEL DE FORMULARIO
   ========================================================= */

.login-form-panel {
  display: grid;
  place-items: center;

  min-width: 0;
  padding: 52px;

  background: #ffffff;
}

.login-form-panel__inner {
  width: min(430px, 100%);
}

.login-form-header {
  margin-bottom: 32px;
}

.login-form-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  margin-bottom: 24px;

  border: 1px solid #d9dbe0;
  border-radius: 14px;

  color: #e12630;

  background: #fafafa;
}

.login-form-header__icon svg {
  width: 21px;
  height: 21px;
}

.login-form-header__eyebrow {
  display: block;

  margin-bottom: 8px;

  color: #e12630;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-form-header h2 {
  margin: 0;

  color: #17191d;

  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.login-form-header p {
  margin: 11px 0 0;

  color: #747880;

  font-size: 14px;
  line-height: 1.55;
}

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

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

.login-field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-field__header label {
  color: #292c31;

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

.login-field__header span {
  color: #93969d;

  font-size: 10px;
}

.login-control {
  position: relative;

  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 52px;
  padding: 0 15px;

  border: 1px solid #d8dae0;
  border-radius: 13px;

  background: #fafafa;

  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.login-control:focus-within {
  border-color: #9da1aa;

  background: #ffffff;
}

.login-control > svg {
  width: 18px;
  min-width: 18px;
  height: 18px;

  color: #8b8f97;
}

.login-control input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;

  border: 0;
  outline: 0;

  color: #1c1f24;

  font-family: inherit;
  font-size: 14px;

  background: transparent;
}

.login-control input::placeholder {
  color: #a1a4aa;
}

.login-control__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;

  border: 0;
  border-radius: 9px;

  color: #898d95;

  background: transparent;
}

.login-control__toggle:hover {
  color: #292c31;

  background: #eeeeef;
}

.login-control__toggle svg {
  width: 17px;
  height: 17px;
}

.login-field__error {
  min-height: 15px;

  color: #d52b34;

  font-size: 11px;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 12px 13px;

  border: 1px solid #e7b6ba;
  border-radius: 12px;

  color: #c92a33;

  font-size: 12px;
  line-height: 1.45;

  background: #fff5f5;
}

.login-alert[hidden] {
  display: none;
}

.login-alert svg {
  width: 17px;
  min-width: 17px;
  height: 17px;
  margin-top: 1px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 52px;
  padding: 0 18px;

  border: 1px solid #d9222c;
  border-radius: 13px;

  color: #ffffff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  background: #e12630;

  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.login-submit:hover:not(:disabled) {
  background: #c91f29;

  transform: translateY(-1px);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.login-submit > svg {
  width: 18px;
  height: 18px;
}

.login-submit__loader {
  display: none;
  align-items: center;
  justify-content: center;
}

.login-submit__loader span {
  width: 18px;
  height: 18px;

  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;

  animation: login-spin 0.7s linear infinite;
}

.login-submit.is-loading .login-submit__loader {
  display: inline-flex;
}

.login-submit.is-loading .login-submit__text,
.login-submit.is-loading > svg {
  display: none;
}

.login-divider {
  display: grid;
  grid-template-columns:
    minmax(20px, 1fr)
    auto
    minmax(20px, 1fr);
  align-items: center;
  gap: 12px;

  margin: 30px 0 22px;
}

.login-divider span {
  height: 1px;

  background: #e2e3e6;
}

.login-divider small {
  color: #989ba1;

  font-size: 10px;
  white-space: nowrap;
}

.login-security {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  padding: 14px;

  border: 1px solid #e0e2e6;
  border-radius: 13px;

  background: #fafafa;
}

.login-security__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  min-width: 34px;
  height: 34px;

  border: 1px solid #cfe3d8;
  border-radius: 10px;

  color: #238253;

  background: #f1faf5;
}

.login-security__icon svg {
  width: 17px;
  height: 17px;
}

.login-security > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-security strong {
  color: #30343a;

  font-size: 11px;
}

.login-security span {
  color: #7e828a;

  font-size: 10px;
  line-height: 1.45;
}

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

/* =========================================================
   ESTADOS DE ERROR
   ========================================================= */

.login-field.has-error .login-control {
  border-color: #d9303a;

  background: #fffafa;
}

.login-field.has-error .login-control > svg {
  color: #d9303a;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

  .login-shell {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(390px, 0.88fr);

    min-height: 680px;
  }

  .login-brand-panel {
    padding: 34px;
  }

  .login-form-panel {
    padding: 40px;
  }

  .login-brand-panel__content h1 {
    font-size: clamp(38px, 5vw, 54px);
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-page {
    align-items: start;

    padding: 0;

    background: #ffffff;
  }

  .login-shell {
    display: block;

    width: 100%;
    min-height: 100vh;

    border: 0;
    border-radius: 0;
  }

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

  .login-form-panel {
    min-height: 100vh;
    padding: 42px 24px;
  }

  .login-form-panel__inner {
    width: min(460px, 100%);
  }

  .login-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 34px;
    padding-top: 18px;

    border-top: 1px solid #e1e3e6;

    color: #8c9097;

    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .login-form-panel {
    align-items: start;

    padding: 28px 18px;
  }

  .login-form-header {
    margin-bottom: 26px;
  }

  .login-form-header__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
  }

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

  .login-field__header span {
    display: none;
  }

  .login-divider {
    grid-template-columns: 1fr;
  }

  .login-divider span {
    display: none;
  }

  .login-divider small {
    text-align: center;
    white-space: normal;
  }

  .login-mobile-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .login-control,
  .login-control__toggle {
    transition: none;
  }

  .login-submit__loader span {
    animation-duration: 1.4s;
  }
}/* =========================================================
   WIRTZ DRIVE · LOGIN
   REFUERZO DE BORDES Y DIVISIONES
   ========================================================= */

.login-shell {
  border:
    1px solid
    #bfc3ca;
}

.login-brand-panel {
  border-right:
    1px solid
    #c4c8cf;
}

.login-brand-panel__header {
  padding-bottom:
    22px;

  border-bottom:
    1px solid
    #c9ccd2;
}

.login-brand__icon {
  border-color:
    #bfc3ca;
}

.login-brand-panel__badge {
  border-color:
    #bfc3ca;

  background:
    #ffffff;
}

.login-brand-panel__eyebrow {
  border-color:
    #bfc3ca;

  background:
    #ffffff;
}

.login-feature {
  border-color:
    #c3c7ce;

  background:
    #ffffff;
}

.login-feature__icon {
  border-color:
    #c3c7ce;
}

.login-brand-panel__footer {
  border-top-color:
    #c2c6cd;
}

.login-form-panel {
  border-left:
    1px solid
    #eceef1;
}

.login-form-header {
  padding-bottom:
    28px;

  border-bottom:
    1px solid
    #d3d6dc;
}

.login-form-header__icon {
  border-color:
    #bec2c9;
}

.login-control {
  border-color:
    #bfc3ca;

  background:
    #ffffff;
}

.login-control:hover {
  border-color:
    #9ea3ac;
}

.login-control:focus-within {
  border-color:
    #e12630;

  outline:
    3px solid
    rgba(
      225,
      38,
      48,
      0.08
    );
}

.login-submit {
  border-color:
    #bb1922;
}

.login-divider span {
  background:
    #c9ccd2;
}

.login-security {
  border-color:
    #c5c9d0;

  background:
    #ffffff;
}

.login-security__icon {
  border-color:
    #a9cdb9;
}

.login-mobile-footer {
  border-top-color:
    #c8cbd1;
}

.login-field.has-error .login-control {
  border-color:
    #d12630;

  outline:
    3px solid
    rgba(
      209,
      38,
      48,
      0.07
    );
}

@media (
  max-width: 820px
) {
  .login-form-panel {
    border-left:
      0;
  }

  .login-form-panel__inner {
    padding:
      24px;

    border:
      1px solid
      #c3c7ce;
    border-radius:
      22px;

    background:
      #ffffff;
  }
}

@media (
  max-width: 520px
) {
  .login-form-panel__inner {
    padding:
      20px;

    border-radius:
      18px;
  }
}/* =========================================================
   WIRTZ DRIVE · LOGIN
   Más separación · Sin scroll en PC · Bordes notorios
   ========================================================= */

@media (min-width: 821px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .login-page {
    width: 100%;
    height: 100vh;
    min-height: 0;
    padding: 26px 44px;

    overflow: hidden;
  }

  .login-shell {
    width: min(1120px, calc(100vw - 88px));
    height: min(760px, calc(100vh - 52px));
    min-height: 0;
    max-height: calc(100vh - 52px);

    border: 1px solid #aeb3bc;
    border-radius: 24px;

    overflow: hidden;
  }

  .login-brand-panel,
  .login-form-panel {
    min-height: 0;
    height: 100%;
  }

  .login-brand-panel {
    padding: 34px 36px;

    border-right: 1px solid #aeb3bc;

    overflow: hidden;
  }

  .login-form-panel {
    padding: 36px 48px;

    overflow: hidden;
  }

  .login-form-panel__inner {
    width: min(410px, 100%);
  }

  .login-brand-panel__header {
    padding-bottom: 18px;

    border-bottom: 1px solid #b8bdc5;
  }

  .login-brand-panel__footer {
    padding-top: 18px;

    border-top: 1px solid #b8bdc5;
  }

  .login-form-header {
    margin-bottom: 24px;
    padding-bottom: 24px;

    border-bottom: 1px solid #b8bdc5;
  }

  .login-feature {
    border-color: #b7bcc4;
  }

  .login-feature__icon {
    border-color: #b7bcc4;
  }

  .login-control {
    border-color: #aeb3bc;
  }

  .login-control:hover {
    border-color: #858c97;
  }

  .login-security {
    border-color: #b7bcc4;
  }

  .login-divider span {
    background: #b7bcc4;
  }

  .login-brand__icon,
  .login-brand-panel__badge,
  .login-brand-panel__eyebrow,
  .login-form-header__icon {
    border-color: #b3b8c0;
  }
}

/* =========================================================
   PANTALLAS DE ALTURA REDUCIDA
   ========================================================= */

@media (min-width: 821px) and (max-height: 820px) {
  .login-page {
    padding: 18px 36px;
  }

  .login-shell {
    width: min(1080px, calc(100vw - 72px));
    height: calc(100vh - 36px);
    max-height: calc(100vh - 36px);
  }

  .login-brand-panel {
    gap: 22px;
    padding: 26px 32px;
  }

  .login-form-panel {
    padding: 28px 42px;
  }

  .login-brand-panel__content h1 {
    font-size: clamp(38px, 3.4vw, 52px);
  }

  .login-brand-panel__content > p {
    margin-top: 18px;
  }

  .login-feature-grid {
    margin-top: 24px;
  }

  .login-feature {
    padding: 12px;
  }

  .login-form-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .login-form-header__icon {
    margin-bottom: 16px;
  }

  .login-form {
    gap: 15px;
  }

  .login-divider {
    margin: 22px 0 18px;
  }
}