:root {
  --ink: #101b33;
  --muted: #53647c;
  --blue: #2454e6;
  --line: #dbe4f0;
  --ice: #eff4ff;
  --danger: #a62738;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1, h2, p { margin: 0; }
p { color: var(--muted); }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid #82a4ff; outline-offset: 3px; }
.access-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  max-width: 1800px;
  margin-inline: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.access-panel { min-width: 0; display: flex; flex-direction: column; }
.access-header { padding: 29px clamp(22px, 4.4vw, 68px) 12px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0c1833;
  font-size: 23px;
  font-weight: 790;
  letter-spacing: -.8px;
}
.brand img { width: 26px; height: 34px; object-fit: contain; }
.access-content {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 28px clamp(24px, 5vw, 72px) 48px;
}
#account { width: min(100%, 455px); margin-inline: auto; }
.access-brand {
  position: sticky;
  top: 20px;
  isolation: isolate;
  align-self: start;
  height: calc(100dvh - 40px);
  min-height: 610px;
  margin: 20px 20px 20px 0;
  overflow: hidden;
  border-radius: 24px;
  background: #071535 url('/safirion-acesso.webp') center 58% / cover no-repeat;
}
.access-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #07132e91 0%, #07132e38 37%, transparent 66%);
}
.brand-copy { max-width: 570px; padding: clamp(28px, 4vw, 62px); color: white; }
.brand-copy h2 {
  max-width: 12em;
  font-size: clamp(31px, 4vw, 57px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 740;
}
.brand-copy p { max-width: 33ch; margin-top: 16px; color: #dbe7ff; font-size: 15px; }
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  margin-bottom: 25px;
  background: #f2f5fa;
  border: 1px solid #e9eef7;
}
button { cursor: pointer; }
.tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.tabs button[aria-pressed="true"] {
  background: #fff;
  color: #214bc9;
  border-color: #e2e9f5;
  box-shadow: 0 1px 3px #162f6020;
}
.auth-heading h1, #account > h2 {
  font-size: clamp(29px, 3.2vw, 43px);
  font-weight: 770;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.auth-heading p, #account > h2 + p { margin-top: 8px; font-size: 15px; }
.auth-form { display: grid; gap: 15px; margin-top: 22px; }
label { display: grid; gap: 6px; margin: 14px 0; color: var(--ink); font-size: 14px; font-weight: 620; }
.auth-field label { margin: 0 0 5px; }
.field-box { position: relative; }
.field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  color: #657893;
  pointer-events: none;
}
input, select, textarea {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 16px;
}
.auth-form input { padding-inline: 41px 13px; min-height: 51px; }
.auth-form input[type="password"], #access-password { padding-right: 49px; }
input::placeholder { color: #63738b; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: #7696f0; outline: 3px solid #2454e622; outline-offset: 0; }
.password-toggle {
  position: absolute;
  inset: 3px 3px 3px auto;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #546981;
  background: transparent;
}
.password-toggle:hover { background: var(--ice); color: var(--blue); }
.eye-strike { display: none; }
.password-toggle[aria-pressed="true"] .eye-strike { display: block; }
.hint { margin-top: -7px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.auth-form .actions { margin-top: 2px; }
.actions :is(button, a), [data-logout], .file .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.actions :is(.primary, .access-button) { flex: 1; color: #fff; background: var(--blue); border-color: var(--blue); }
.auth-form .primary { min-height: 51px; }
.actions :is(.primary, .access-button):hover { background: #1944cd; }
button:disabled { cursor: wait; opacity: .7; }
.auth-form[aria-busy="true"] .primary::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff73;
  border-right-color: white;
  border-radius: 50%;
  animation: access-spin .7s linear infinite;
}
@keyframes access-spin { to { transform: rotate(360deg); } }
.error { color: var(--danger); font-size: 13px; }
.error:empty { display: none; }
.error:not(:empty) { padding: 9px 12px; background: #fff3f4; border-radius: 9px; }
.loading { color: var(--muted); }
.counter { font-size: 13px; color: var(--blue); font-weight: 700; }
.progress { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 8px 0 16px; }
.progress i { height: 4px; border-radius: 5px; background: var(--line); }
.progress .filled { background: var(--blue); }
.file { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; margin: 9px 0; }
.file label { margin: 0; }
.file input { padding: 6px; }
.file input::file-selector-button { border: 0; border-radius: 7px; background: var(--ice); color: var(--blue); padding: 7px; }
.file img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; }
.file small { color: var(--muted); overflow-wrap: anywhere; }
.file .remove { justify-self: start; font-size: 13px; }
.summary { margin: 15px 0; background: var(--ice); padding: 14px; border-radius: 13px; overflow-wrap: anywhere; }
.review-list { padding-left: 20px; }
.review-list li { margin: 5px 0; overflow-wrap: anywhere; }
.status { display: inline-block; margin-bottom: 9px; border-radius: 999px; padding: 5px 10px; background: #d6f7e5; color: #085231; font-size: 13px; font-weight: 700; }
@media (max-width: 1050px) {
  .access-content { padding-inline: 32px; }
  .access-brand { margin-right: 14px; }
  .brand-copy { padding: 33px; }
}
@media (max-width: 720px) {
  .access-shell { display: block; min-height: 100dvh; }
  .access-header { padding: calc(17px + env(safe-area-inset-top)) 20px 15px; border-bottom: 1px solid #eef1f7; }
  .brand { font-size: 21px; }
  .brand img { width: 23px; height: 29px; }
  .access-content { padding: 25px 20px calc(24px + env(safe-area-inset-bottom)); }
  .access-brand { display: none; }
  .tabs { margin-bottom: 22px; }
  .auth-heading h1 { font-size: clamp(28px, 8vw, 36px); }
  .auth-form { margin-top: 19px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
