:root {
  --axiody-font-family: "Segoe UI", Arial, sans-serif;
  font-family: var(--axiody-font-family);
  color: #152c4d;
  background: #fff;
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--axiody-font-family); font-size: 1rem; line-height: 1.5; }
button, input { font: inherit; }
a { color: #1764c5; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #4289e7; outline-offset: 4px; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 12px 18px; background: white; border-radius: 8px; z-index: 5; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }

.story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(36px, 4.5vw, 68px) clamp(36px, 7.5vw, 116px);
  color: white;
  background: linear-gradient(145deg, #1c426f 0%, #173652 62%, #102b46 100%);
}
.story::before { content: ""; position: absolute; z-index: -1; width: 680px; height: 800px; right: -530px; top: -180px; border-radius: 50%; background: linear-gradient(140deg, #5c9fef30, #94caff4d); transform: rotate(25deg); }
.brand, .card-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 62px; height: 68px; flex-shrink: 0; }
.brand-name { display: block; font-size: 32px; font-weight: 600; letter-spacing: 3px; }
.brand-tagline { display: block; margin-top: 4px; color: #d1e0f1; font-size: 11px; }
.story-content { margin: 52px 0 64px; max-width: 510px; }
h1 { font-size: clamp(30px, 2.9vw, 46px); line-height: 1.2; letter-spacing: -1.2px; font-weight: 600; margin: 0 0 24px; }
.story-intro { font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; color: #dfebf8; margin: 0; }
.features { list-style: none; display: grid; gap: 26px; margin: 38px 0 0; padding: 0; }
.features li { display: flex; align-items: center; gap: 22px; }
.feature-icon { display: grid; place-items: center; width: 62px; height: 62px; flex-shrink: 0; border: 1px solid #9dcaff20; border-radius: 50%; background: #5797e044; color: #f5faff; }
.feature-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.features h2 { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.features p { margin: 0; color: #d6e5f6; font-size: 14px; line-height: 1.55; }
.story-footer { margin-top: auto; font-size: 10px; line-height: 1.9; letter-spacing: 2.2px; text-transform: uppercase; color: #c8daef; }
.story-footer::after { content: ""; display: block; width: 220px; max-width: 100%; height: 2px; background: #85b9e7; margin-top: 12px; }
.architecture { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.architecture span { position: absolute; bottom: -180px; width: 190px; height: 430px; border: 1px solid #8dbde82b; background: repeating-linear-gradient(0deg, transparent 0 36px, #9ac9ee20 37px 38px), repeating-linear-gradient(90deg, #1b4b7624 0 29px, #88b9df24 30px 31px), linear-gradient(110deg, #76a8d535, #10294190); transform: skewY(-32deg); }
.architecture span:nth-child(1) { right: 170px; height: 270px; }
.architecture span:nth-child(2) { right: 25px; }
.architecture span:nth-child(3) { right: -120px; height: 640px; }

.main { display: flex; align-items: center; justify-content: center; padding: 56px clamp(24px, 4vw, 64px); background: #fff; }
.card { width: 100%; max-width: 600px; padding: 48px clamp(28px, 3.5vw, 54px); background: #fff; border: 1px solid #edf2f9; border-radius: 22px; box-shadow: 0 14px 55px #214d8610; }
.card-brand { justify-content: center; gap: 12px; margin-bottom: 26px; }
.card-brand .brand-mark { width: 72px; height: 78px; }
.card-brand .brand-name { font-size: 33px; }
.card > h2 { margin: 0 0 10px; font-size: clamp(28px, 2.4vw, 36px); font-weight: 600; text-align: center; letter-spacing: -1px; }
.intro { color: #65748b; text-align: center; font-size: 17px; margin: 0 0 36px; line-height: 1.5; }
.field { margin-bottom: 24px; }
.hint { margin: 9px 0 0; color: #65748b; font-size: 13px; line-height: 1.5; }
label { display: block; margin-bottom: 9px; font-size: 15px; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.form-link-row { display: flex; justify-content: flex-end; margin: -8px 0 18px; }
.forgot-password { font-size: 12px; text-decoration: none; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 17px; top: 17px; width: 22px; height: 22px; fill: none; stroke: #667a94; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
input { width: 100%; min-width: 0; height: 56px; padding: 0 16px 0 48px; border: 1px solid #c7d1df; border-radius: 9px; background: #fff; color: #152c4d; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #738095; opacity: 1; }
input:focus { outline: none; border-color: #2c78d4; box-shadow: 0 0 0 3px #2c78d41c; }
input:-webkit-autofill { -webkit-text-fill-color: #152c4d; -webkit-box-shadow: 0 0 0 1000px #f3f7fe inset; }
.password-wrap input { padding-right: 66px; }
.toggle { position: absolute; right: 5px; top: 6px; height: 44px; min-width: 52px; border: 0; border-radius: 6px; background: transparent; color: #526a86; font-size: 12px; font-weight: 600; cursor: pointer; }
.toggle:hover { background: #edf4ff; color: #1764c5; }
.hint { margin: 9px 0 0; color: #65748b; font-size: 13px; line-height: 1.5; }
.primary { display: block; width: 100%; min-height: 56px; padding: 14px 20px; margin-top: 30px; border: 1px solid #2d75ce; border-radius: 9px; background: #2d75ce; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .15s; }
.primary:hover { background: #1c61b5; }
.primary:disabled { opacity: .65; cursor: wait; }
.message { padding: 12px 14px; border-radius: 8px; background: #edf4ff; color: #214f85; font-size: 13px; line-height: 1.6; margin-top: 18px; overflow-wrap: anywhere; }
.message-error { background: #fff0f0; color: #a12c34; }
.message:empty { display: none; }
.signup { margin: 32px 0 0; padding-top: 27px; border-top: 1px solid #e4eaf2; text-align: center; color: #65748b; font-size: 14px; line-height: 1.8; }
.signup a { display: inline-block; margin-left: 7px; font-weight: 600; text-decoration: none; }
.signup a:hover { text-decoration: underline; }

@media (min-width: 1700px) { .story-content { margin-top: 70px; } .features { gap: 32px; } }
@media (max-width: 1100px) { .story { padding: 38px 32px; } .main { padding: 36px 24px; } .card { padding: 38px 28px; } .brand-name { font-size: 28px; } .features li { gap: 16px; } }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .story { padding: 26px 28px 30px; }
  .brand-mark { width: 44px; height: 48px; }
  .brand-name { font-size: 24px; }
  .brand-tagline { font-size: 10px; }
  .story-content { margin: 26px 0 0; max-width: 560px; }
  h1 { font-size: 30px; margin-bottom: 14px; }
  h1 br { display: none; }
  .story-intro { font-size: 14px; }
  .features, .story-footer { display: none; }
  .main { padding: 28px 20px 40px; }
  .card { max-width: 500px; padding: 30px 28px; border-radius: 18px; }
  .card-brand { margin-bottom: 20px; }
  .card-brand .brand-mark { width: 48px; height: 52px; }
  .card-brand .brand-name { font-size: 27px; }
  .intro { font-size: 15px; margin-bottom: 28px; }
}
@media (max-width: 380px) { .main { padding-inline: 12px; } .card { padding-inline: 20px; } .story { padding-inline: 24px; } }
@media (prefers-reduced-motion: reduce) { input, .primary { transition: none; } }
