:root {
  color-scheme: light;
  --vino: #650014;
  --vino-profundo: #51000f;
  --carmesi: #a9193a;
  --marfil: #fffaf6;
  --tinta: #2b1920;
  --texto-suave: #70545d;
  --borde: #d7c5c9;
  font-family: "Inter", "Noto Sans", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--marfil);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
button { cursor: pointer; }
::selection { background: #dcbac3; color: #2b0711; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(350px, 46%) minmax(0, 1fr);
  min-height: 100svh;
}
.brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 64px clamp(28px, 5vw, 76px) 36px;
  background: var(--vino);
  color: #fff;
}
.brand-art { display: block; width: min(100%, 630px); height: auto; filter: brightness(.8) contrast(1.5); mix-blend-mode: lighten; }
.brand-caption {
  position: absolute;
  left: clamp(28px, 5vw, 76px);
  bottom: 36px;
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f5dbe1;
}
.login-content {
  display: grid;
  align-items: center;
  padding: 54px clamp(32px, 7vw, 112px);
}
.login-inner { width: min(100%, 460px); margin: 0 auto; }
.login-inner h1 {
  margin: 0;
  font-family: "Didot", "Bodoni MT", "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--vino);
}
.login-description {
  margin: 14px 0 38px;
  color: var(--texto-suave);
  font-size: 1rem;
  line-height: 1.5;
}
.field { margin: 0 0 23px; }
.field label {
  display: block;
  margin: 0 0 9px;
  color: var(--tinta);
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.35;
}
.field select, .field input {
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: #fff;
  color: var(--tinta);
  font-size: 1rem;
  line-height: 1.3;
  outline: 0;
}
.field input::placeholder { color: #78636b; opacity: 1; }
.field select:disabled { background: #f1e9e8; color: #6e6062; cursor: not-allowed; }
.field select:focus-visible, .field input:focus-visible, .show-password:focus-visible, .submit-button:focus-visible, .login-inner a:focus-visible {
  outline: 3px solid var(--carmesi);
  outline-offset: 3px;
}
.password-field { position: relative; }
.password-field input { padding-right: 96px; }
.show-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 74px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vino);
  font-size: .84rem;
  font-weight: 700;
}
.show-password:hover { background: #f7e9ed; }
.login-error {
  margin: 0 0 17px;
  padding: 12px 14px;
  border: 1px solid #c98192;
  border-radius: 8px;
  background: #fff0f2;
  color: #7e0a25;
  font-size: .9rem;
  line-height: 1.45;
}
.submit-button {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--vino);
  border-radius: 8px;
  background: var(--vino);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease;
}
.submit-button:hover { background: var(--carmesi); border-color: var(--carmesi); }
.submit-button:disabled { opacity: .7; cursor: wait; }
.login-inner a { color: var(--vino); text-underline-offset: .2em; font-weight: 650; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-panel { min-height: 228px; padding: 24px 24px 18px; }
  .brand-art { width: min(100%, 410px); }
  .brand-caption { position: static; align-self: center; margin: 8px 0 0; font-size: .7rem; }
  .login-content { padding: 48px 26px 72px; }
}
@media (max-width: 480px) {
  .brand-panel { min-height: 188px; padding: 18px 18px 14px; }
  .brand-art { width: min(100%, 340px); }
  .brand-caption { font-size: .63rem; letter-spacing: .09em; }
  .login-content { align-items: start; padding: 37px 22px 56px; }
  .login-inner h1 { font-size: 2.45rem; }
  .login-description { margin-bottom: 30px; }
  .field { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .submit-button { transition: none; }
}
