:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #260c31;
  background: #f5f1fa;
  --purple: #721887;
  --paper: #f5f1fa;
  --side: 37%;
  --slide: 620ms cubic-bezier(.22, .8, .25, 1);
}

* { box-sizing: border-box; }
body { min-height: 100dvh; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #be63d6; outline-offset: 3px; }
[hidden] { display: none !important; }

.access {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: max(38rem, 100dvh);
  overflow: hidden;
  background: var(--paper);
}
.account, .landscape { position: absolute; inset-block: 0; transition: left var(--slide); }
.account { left: 0; width: var(--side); display: grid; align-content: center; padding: 5.5rem clamp(1.2rem, 3.7vw, 2.85rem) 2rem; background: var(--paper); }
.landscape {
  left: var(--side);
  width: calc(100% - var(--side));
  display: flex;
  align-items: end;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(0deg, #091525f5, #0d192741 55%, transparent 80%), url("../assets/san-martin-2.jpg") center / cover;
  color: white;
  text-align: right;
}
.access[data-mode="register"] .account { left: calc(100% - var(--side)); }
.access[data-mode="register"] .landscape { left: 0; justify-content: flex-start; text-align: left; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #310939; text-decoration: none; font-family: "Arial Black", "Segoe UI", system-ui, sans-serif; font-size: clamp(2.75rem, 4vw, 4rem); line-height: 1; font-weight: 900; letter-spacing: -.045em; width: fit-content; }
.account .brand { position: absolute; top: 1.7rem; left: clamp(1.2rem, 3.7vw, 2.85rem); }
.access[data-mode="register"] .brand { left: auto; right: clamp(1.2rem, 3.7vw, 2.85rem); }
.pin { position: relative; width: 1.9rem; height: 1.9rem; transform: rotate(-45deg); border-radius: 50% 50% 50% 0; background: linear-gradient(145deg, #a226bd, #590c73); }
.pin::after { content: ""; position: absolute; inset: .6rem; border-radius: 50%; background: var(--paper); }
.avatar { display: grid; place-items: center; width: 5rem; height: 5rem; margin-inline: auto; border-radius: 50%; color: #641679; background: #dfc4e9; }
.avatar svg { width: 2.85rem; }
.forms { width: min(100%, 24rem); margin-inline: auto; }
h1 { font-size: 1.35rem; font-weight: 700; margin: .7rem 0 1.3rem; }
.forms h1 { text-align: center; }
form { display: grid; gap: .8rem; }
form label { display: block; margin-bottom: .3rem; font-size: .875rem; font-weight: 600; }
form input:not([type="checkbox"]) { width: 100%; min-height: 2.7rem; border: 1px solid #86508f; border-radius: 2rem; padding: .45rem .9rem; background: #fff; color: inherit; }
.password-field { position: relative; }
.password-field input { padding-right: 5.25rem !important; }
.reveal { position: absolute; inset: 0 .7rem 0 auto; border: 0; background: transparent; color: #641679; font-size: .875rem; }
.remember { display: flex; align-items: center; gap: .45rem; margin: 0; }
.remember input { accent-color: var(--purple); }
.primary { width: 100%; min-height: 2.75rem; border: 0; border-radius: 2rem; background: var(--purple); color: #fff; font-weight: 700; box-shadow: 0 .35rem .85rem #67197a38; }
.primary:hover { background: #5c126e; }
.message { margin: 0; color: #641679; font-size: .875rem; }
.message:empty { display: none; }
.welcome-title, .tagline, .switch { margin: 0; }
.welcome-title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; font-weight: 850; letter-spacing: -.055em; }
.tagline { margin-top: .45rem; font-size: 1.25rem; }
.switch { margin-top: 1.2rem; font-size: .95rem; }
.switch button { border: 0; padding: 0; min-height: 2rem; color: #fff; background: transparent; text-decoration: underline; font-weight: 700; }

@media (max-width: 48rem) {
  .access { display: flex; flex-direction: column; min-height: 100dvh; }
  .account, .landscape { position: static; width: 100%; }
  .account { position: relative; padding: 5rem clamp(1.4rem, 7vw, 3rem) 1.75rem; }
  .account .brand { top: 1.2rem; }
  .landscape { flex: 1; min-height: 13rem; }
  .forms { animation: arrive 250ms ease-out; }
}

.forms.entering { animation: arrive 300ms ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(.5rem); } }
@media (prefers-reduced-motion: reduce) {
  .account, .landscape { transition: none; }
  .forms, .forms.entering { animation: none; }
}
