:root {
  --coal: #2f3131;
  --steel: #426e86;
  --bone: #f8f1e5;
  --sun: #f9ba32;
  --muted: #555c60;
  --line: #a9aeac;
  --control: clamp(38px, 5.2svh, 48px);
  --field-gap: clamp(7px, 1.4svh, 15px);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--coal);
  background: var(--bone);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

.access-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.presentation {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(12px, 3svh, 30px);
  padding: clamp(22px, 5svh, 52px) clamp(24px, 5vw, 84px);
  color: var(--bone);
  background: linear-gradient(110deg, #1b252bf0 12%, #26363ed9 48%, #26363e59),
              #232a2c url("/login-city.webp") 58% 48% / cover no-repeat;
}
.presentation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(130deg, transparent 0 68px, #d6ebf113 69px 70px),
              linear-gradient(130deg, transparent 0 53%, #88adc422 53.1% 67%, transparent 67.1%);
  mask-image: linear-gradient(100deg, transparent, #000 82%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
}
.brand-mark {
  background: var(--sun);
  color: var(--coal);
  display: grid;
  place-content: center;
  position: relative;
  width: 41px;
  height: 41px;
  border-radius: 9px;
  padding-right: 5px;
  font: 900 31px/1 Arial, sans-serif;
}
.brand-mark span { position: absolute; font-size: 19px; inset: 7px 6px auto auto; }
.presentation-content {
  align-self: center;
  display: grid;
  gap: clamp(16px, 3.5svh, 38px);
  max-width: 560px;
}
.presentation h2 {
  margin: 0;
  font-size: clamp(40px, min(6.1vw, 9svh), 84px);
  letter-spacing: -.065em;
  line-height: .99;
}
.presentation p {
  margin: clamp(9px, 2svh, 19px) 0 0;
  color: #d5e1e6;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
}
.app-preview {
  width: min(100%, 370px);
  overflow: hidden;
  color: var(--bone);
  background: #26363f;
  border: 1px solid #597585;
  border-radius: 12px;
  box-shadow: 0 14px 35px #151f2370;
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-bottom: 1px solid #486371;
  font-size: 13px;
}
.preview-mark { color: var(--sun); font-size: 18px; font-weight: 800; }
.preview-pulse { margin-left: auto; width: 7px; height: 7px; background: var(--sun); border-radius: 50%; }
.preview-body { display: grid; gap: 6px; padding: 9px; }
.preview-document {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  background: #324953;
  border-radius: 5px;
  font-size: 12px;
}
.preview-document small { display: block; margin-top: 2px; color: #d0dce2; }

.access-side {
  display: grid;
  align-items: center;
  justify-items: center;
  border-top: 4px solid var(--sun);
  padding: max(12px, env(safe-area-inset-top)) max(20px, 5vw, env(safe-area-inset-right))
           max(12px, env(safe-area-inset-bottom)) max(20px, 5vw, env(safe-area-inset-left));
}
.access-card { width: min(100%, 410px); }
.access-card header { margin-bottom: clamp(10px, 3svh, 28px); }
h1 { margin: 0; font-size: clamp(28px, 4.5vw, 45px); letter-spacing: -.055em; line-height: 1.05; }
h2 { font-size: 19px; margin: 0 0 5px; }
p { margin: 7px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
a, .text-button { color: #345c71; }
:focus-visible { outline: 2px solid #345c71; outline-offset: 3px; }
.presentation :focus-visible { outline-color: var(--sun); }
.google-button, .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: var(--control);
  padding: 7px 10px;
  border: 1px solid var(--steel);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.google-button { background: #fffaf1; border-color: var(--line); color: var(--coal); }
.google-button:hover:not(:disabled) { border-color: var(--steel); background: #fff; }
.primary { margin-top: var(--field-gap); background: var(--steel); color: #fff; }
.primary:hover:not(:disabled) { background: #34596e; }
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--field-gap) 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #c8c5bd; }
label { display: block; margin: var(--field-gap) 0 4px; font-size: 13px; font-weight: 650; }
input {
  display: block;
  width: 100%;
  min-height: var(--control);
  padding: 5px 9px;
  color: var(--coal);
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 16px;
}
input[type="file"] { padding: 5px; font-size: 13px; }
input::placeholder { color: #666b6c; }
.password-label { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; }
.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-toggle {
  position: absolute;
  inset: 0 4px 0 auto;
  border: 0;
  padding: 0 9px;
  background: transparent;
  color: #345c71;
}
.text-button {
  border: 0;
  padding: 5px 2px;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
  font-weight: 650;
}
.register-link { margin: var(--field-gap) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.platform-admin main { max-width: 820px; margin: auto; padding: 28px 18px; }
.platform-admin header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.platform-admin form > div { display: flex; gap: 8px; }
.platform-admin .primary { width: auto; margin: 0; padding-inline: 20px; }
.platform-admin ul { padding: 0; list-style: none; }
.platform-admin li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 8px; background: #fffaf1; overflow-wrap: anywhere; }
.platform-admin li p { margin: 3px 0; }
.platform-admin nav { display: flex; justify-content: space-between; }
.access-status, .access-help, .access-card form small { font-size: 12px; }
.access-status:empty { display: none; }
.access-status.error { color: #a13733; }
#redirect-uri { display: block; overflow-wrap: anywhere; font-size: 12px; }
#return-link, #configure-link { display: inline-block; font-size: 13px; margin: 4px 9px 4px 0; }
#google-config { margin-top: var(--field-gap); }
#cancel-register { margin-top: 4px; }

@media (min-width: 500px) and (max-height: 510px) {
  .presentation { padding-block: 14px; gap: 12px; }
  .presentation h2 { font-size: clamp(29px, 7.5svh, 44px); }
  .app-preview { display: none; }
  .access-card header { margin-bottom: 8px; }
}
@media (max-width: 600px) and (orientation: portrait), (max-width: 499px) {
  .access-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .presentation {
    height: clamp(79px, 24svh, 166px);
    grid-template-rows: 1fr;
    align-items: center;
    padding-block: 12px;
    background-position: center, 59% 50%;
    background-image: linear-gradient(90deg, #1b252be8, #1b252b7d 62%, #1b252b12), url("/login-city.webp");
  }
  .presentation-content { display: none; }
  .access-side { padding-inline: max(20px, 7vw); }
}
@media (max-width: 499px) and (max-height: 520px) {
  .presentation { height: clamp(58px, 19svh, 95px); }
}
@media (max-height: 415px) {
  :root { --control: 36px; --field-gap: 6px; }
  .access-side { border-top-width: 3px; padding-block: 8px; }
  .access-card header { margin-bottom: 6px; }
  .access-card header p { margin-top: 4px; }
}
@media (min-width: 500px) and (max-height: 350px) {
  :root { --field-gap: 4px; }
  .access-side { padding-inline: 12px; }
  .access-card header p { display: none; }
  .access-card header { margin-bottom: 9px; }
  .register-link .text-button { padding-block: 3px; }
}
