:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09130f;
  color: #f4f9f6;
  --muted: #acbeb4;
  --accent: #b8f4ac;
  --line: #4c5e54;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
.access {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
}
.brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.35rem, 4.6vw, 4.5rem);
  background: linear-gradient(180deg, #07110fee 0%, #09190d17 38%, #09190d26 62%, #07110fef 100%),
    #182d22 url("/login/portada.jpg") center 56% / cover no-repeat;
  border-inline-end: 1px solid #283c31;
}
.brand-header { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.brand-header a { display: block; flex: 0 0 auto; }
.brand-header img { display: block; height: auto; }
.brand-footer { color: #d5e3da; font-size: .85rem; }
.preview {
  border: 1px solid #627d6d;
  background: #14251de8;
  border-radius: 999px;
  padding: .38rem .65rem;
  color: #ebf6ee;
  font-size: .75rem;
}
.entry {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(1.5rem, 6vw, 6rem);
}
.entry-inner { width: min(100%, 26rem); }
h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  margin: 0 0 .8rem;
}
.intro { margin: 0 0 1.95rem; color: var(--muted); line-height: 1.6; }
form { display: grid; gap: .55rem; }
label { font-weight: 650; font-size: .9rem; }
input:not([type="hidden"]) {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: .7rem .85rem;
  background: #15231c;
  color: inherit;
}
#username { margin-block-end: .7rem; }
.password { display: grid; position: relative; }
.password:has(button:not([hidden])) input { padding-inline-end: 5.2rem; }
#visibility {
  position: absolute;
  inset: 3px 3px 3px auto;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: .4rem;
  padding: 0 .8rem;
  font-size: .85rem;
  cursor: pointer;
}
.primary {
  min-height: 3.2rem;
  margin-block-start: .9rem;
  border: 0;
  border-radius: .6rem;
  background: var(--accent);
  color: #102115;
  font-weight: 750;
  cursor: pointer;
}
.primary:hover { background: #d2ffc7; }
.back { display: inline-flex; gap: .5rem; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; text-underline-offset: .25em; }
.error { color: #ffd0c6; background: #442924; border: 1px solid #986259; border-radius: .6rem; padding: .8rem; line-height: 1.45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 720px) {
  .access { grid-template-columns: 1fr; align-content: start; }
  .brand {
    min-height: 10rem;
    background-position: center 42%;
    border-inline-end: 0;
    border-bottom: 1px solid #283c31;
  }
  .brand-footer { display: none; }
  .entry { padding: 1.65rem 1.25rem 2rem; }
  .intro { margin-bottom: 1.5rem; }
}
