:root {
  --atlas: #075dad;
  --atlas-dark: #08375f;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #d0d9e5;
  --surface: #ffffff;
  --canvas: #eef3f8;
  --teal: #087f8c;
  --success: #157347;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
a { color: var(--atlas); text-decoration: none; }
[hidden] { display: none !important; }

.access-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.access-context { min-width: 0; max-width: 100%; }
.brand { display: inline-flex; margin-bottom: 56px; }
.brand img { display: block; width: 210px; height: auto; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.access-context h1 { margin: 0 0 16px; color: var(--ink); font-size: 38px; line-height: 1.15; overflow-wrap: anywhere; }
.access-context > div > p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.access-steps { display: grid; gap: 22px; margin: 44px 0 0; padding: 0; list-style: none; }
.access-steps li { display: flex; gap: 14px; align-items: flex-start; }
.access-steps li > span {
  display: grid; place-items: center; flex: 0 0 30px; height: 30px;
  border-radius: 50%; background: var(--atlas-dark); color: #fff; font-weight: 800;
}
.access-steps strong, .access-steps small { display: block; }
.access-steps strong { color: var(--ink); }
.access-steps small { margin-top: 3px; color: var(--muted); font-size: 14px; }

.access-card { min-width: 0; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 50px rgba(16, 24, 40, .1); overflow: hidden; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.mode-tab { padding: 17px 12px; color: var(--muted); text-align: center; font-weight: 750; border-bottom: 3px solid transparent; }
.mode-tab.active { color: var(--atlas); border-bottom-color: var(--atlas); background: #f8fbff; }
.access-card > section { padding: 34px 38px 24px; }
.card-header h2 { margin: 0 0 9px; color: var(--ink); font-size: 27px; }
.card-header > p:last-child { margin: 0 0 26px; color: var(--muted); line-height: 1.5; }
form { display: grid; gap: 17px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { min-width: 0; color: var(--text); font-size: 14px; font-weight: 700; }
input {
  width: 100%; min-width: 0; height: 44px; margin-top: 7px; padding: 0 12px;
  border: 1px solid #b8c5d4; border-radius: 5px; outline: 0; color: var(--ink); background: #fff;
}
input:focus { border-color: var(--atlas); box-shadow: 0 0 0 3px rgba(7, 93, 173, .13); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 75px; }
.password-field button { position: absolute; right: 7px; bottom: 6px; height: 32px; border: 0; background: transparent; color: var(--atlas); font-size: 12px; font-weight: 800; }
.password-note { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.primary-button { min-height: 44px; border: 0; border-radius: 5px; background: var(--atlas); color: #fff; font-weight: 800; }
.primary-button:hover { background: #034e92; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.text-button { min-height: 38px; border: 0; background: transparent; color: var(--atlas); font-weight: 750; }
.code-input { font-size: 24px; font-weight: 800; letter-spacing: 8px; text-align: center; }
.form-message { display: block; min-height: 22px; color: var(--danger); font-size: 13px; line-height: 1.45; }
.form-message.success { color: var(--success); }
.card-footer { padding: 18px 38px 24px; border-top: 1px solid #e6ebf1; color: var(--muted); font-size: 14px; text-align: center; }
.card-footer a { font-weight: 800; }
.registration-link { text-align: center; }

@media (max-width: 860px) {
  .access-shell { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 40px; }
  .brand { margin-bottom: 28px; }
  .access-context h1 { font-size: 30px; }
  .access-steps { display: none; }
}
@media (max-width: 520px) {
  .access-shell { width: 100%; padding: 0; }
  .access-context { padding: 24px 20px 4px; }
  .brand img { width: 150px; }
  .access-context h1 { font-size: 25px; }
  .access-context > div > p:last-child { font-size: 15px; }
  .access-card { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .access-card > section, .card-footer { padding-right: 20px; padding-left: 20px; }
  .field-grid { grid-template-columns: 1fr; }
}
