:root {
  --ink: #0b0909;
  --ink-raised: #151112;
  --line: #493033;
  --paper: #eee6da;
  --muted: #a99f95;
  --red: #b73e45;
  --red-bright: #df6268;
  --logo-red: #d10000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: "Manrope", sans-serif;
}

a { color: inherit; }

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr);
}

.portal-identity {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #382a2a;
  color: #f2ece4;
  background-color: #111010;
  background-image: repeating-linear-gradient(112deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 10px), repeating-linear-gradient(22deg, rgba(209, 0, 0, .018) 0 1px, transparent 1px 18px);
}

.portal-identity::before {
  content: none;
}

.portal-brand {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font: 800 13px "Sora", sans-serif;
  text-decoration: none;
  letter-spacing: 0;
}

.portal-brand::before {
  width: 18px;
  height: 18px;
  border: 5px solid var(--logo-red);
  content: "";
  transform: rotate(45deg);
}

.portal-art {
  width: clamp(240px, 22vw, 310px);
  height: min(56vh, 540px);
  position: absolute;
  top: 13%;
  right: 1%;
  z-index: 0;
  border: 1px solid #665b58;
  background: #080706;
  box-shadow: 14px 14px 0 var(--logo-red);
  transform: rotate(3deg);
}

.portal-art img { width: 100%; height: 100%; object-fit: contain; }

.portal-art.portal-art-emblem {
  width: clamp(220px, 18vw, 270px);
  height: auto;
  aspect-ratio: 768 / 473;
  top: 15%;
  right: 4%;
  background: #080706;
  box-shadow: 14px 14px 0 var(--logo-red);
  transform: rotate(-2deg);
}

.portal-story {
  z-index: 1;
  max-width: min(56%, 680px);
  padding-top: 80px;
}

.portal-kicker,
.portal-form label,
.portal-index {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-kicker { color: var(--logo-red); }

.portal-kicker-customer {
  display: inline-block;
  font: 800 15px / 1.2 "Sora", sans-serif;
}

.portal-form label,
.portal-index { color: var(--red-bright); }

.portal-story h1 {
  max-width: 720px;
  margin: 14px 0 24px;
  font: 700 60px / 1.04 "Sora", sans-serif;
  overflow-wrap: normal;
  word-break: normal;
}

.portal-initial {
  position: relative;
  top: 7px;
  color: var(--logo-red);
  font-family: "UnifrakturCook", serif;
  font-size: 1.12em;
  line-height: 0;
}

.portal-story > p {
  max-width: 580px;
  color: #b8aea5;
  font-size: 16px;
  line-height: 1.8;
}

.portal-proof {
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(242, 236, 228, .28);
}

.portal-proof span {
  padding: 18px 14px 0 0;
  color: #b8aea5;
  font-size: 11px;
  font-weight: 700;
}

.portal-form-side {
  min-height: 100vh;
  padding: 48px;
  display: grid;
  place-items: center;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.portal-panel { width: min(440px, 100%); }

.portal-index {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.portal-panel h2 {
  margin: 28px 0 10px;
  font: 700 clamp(30px, 4vw, 44px) / 1.05 "Sora", sans-serif;
}

.portal-lead {
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.65;
}

.portal-form label { display: block; margin: 18px 0 8px; }

.portal-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #604044;
  border-radius: 0;
  color: #f6eee4;
  background: var(--ink-raised);
  font: 600 15px "Manrope", sans-serif;
  outline: none;
}

.portal-form input:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 2px rgba(223, 98, 104, .16);
}

.portal-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: 1px solid var(--red);
  color: #fff;
  background: var(--red);
  font: 800 13px "Manrope", sans-serif;
  cursor: pointer;
}

.portal-submit:hover { background: #c84950; }

.portal-error {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--red-bright);
  color: #f0c9c9;
  background: #211719;
}

.portal-success {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-left: 3px solid #67c7c2;
  color: #d8f5f2;
  background: #11211f;
}

.portal-forgot {
  width: fit-content;
  display: block;
  margin: 12px 0 0 auto;
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.portal-forgot:hover { color: var(--red-bright); }

.portal-meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.portal-meta a { color: var(--paper); font-weight: 800; }

.portal-2fa { text-align: left; }
.portal-2fa-shell .portal-story { max-width: 60%; }
.portal-2fa-shell .portal-story h1 { max-width: 430px; font-size: clamp(40px, 3.7vw, 54px); overflow-wrap: normal; word-break: normal; }
.portal-2fa-shell .portal-art { width: clamp(210px, 21vw, 280px); }

.portal-qr {
  display: block;
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 24px auto;
  border: 10px solid #fff;
  background: #fff;
}

.portal-secret { margin: 18px 0; color: var(--muted); font-size: 13px; }
.portal-secret summary { cursor: pointer; }
.portal-secret code { display: block; margin-top: 10px; color: var(--paper); overflow-wrap: anywhere; }
.portal-recovery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 24px 0; }
.portal-recovery code { padding: 12px; border: 1px solid var(--line); color: var(--paper); background: var(--ink-raised); text-align: center; }
.portal-submit-link { display: grid; place-items: center; text-decoration: none; }

@media (max-width: 860px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-identity { min-height: 560px; padding: 30px 24px; }
  .portal-art { width: 34%; height: 390px; top: auto; right: 3%; bottom: 34px; }
  .portal-story { max-width: 58%; padding: 72px 0 48px; }
  .portal-story h1 { font-size: clamp(46px, 13vw, 68px); }
  .portal-proof { display: none; }
  .portal-form-side { min-height: auto; padding: 54px 24px 80px; }
}

@media (max-width: 460px) {
  .portal-identity { min-height: auto; justify-content: flex-start; }
  .portal-art { width: 200px; height: 250px; position: relative; top: auto; right: auto; bottom: auto; align-self: center; margin: 32px auto 0; box-shadow: 8px 8px 0 #e34731; transform: rotate(2deg); }
  .portal-art.portal-art-emblem { width: min(280px, calc(100% - 48px)); position: relative; top: auto; right: auto; bottom: auto; align-self: center; margin: 32px auto 0; box-shadow: 8px 8px 0 #b8322d; transform: rotate(-2deg); }
  .portal-story { max-width: 100%; padding-top: 42px; }
  .portal-story h1 { font-size: 46px; }
  .portal-story > p { font-size: 14px; }
  .portal-form-side { padding-inline: 20px; }
  .portal-recovery { grid-template-columns: 1fr; }
}