:root {
  --navy: #071848;
  --navy-2: #0b2468;
  --cobalt: #123cf1;
  --yellow: #ffd84d;
  --white: #f7f9ff;
  --ice: #cbd6f7;
  --muted: #8192c5;
  --line: rgba(188, 204, 255, .18);
  --danger: #ff637f;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: hidden; scroll-behavior: smooth; background: var(--navy); }
body { width: 100%; max-width: 100%; min-width: 0; margin: 0; overflow-x: hidden; color: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; background: radial-gradient(circle at 76% 24%, rgba(18,60,241,.3), transparent 31%), linear-gradient(135deg, #061641 0%, #071b50 50%, #050f30 100%); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--navy); background: var(--yellow); }

.data-field { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: .3; pointer-events: none; }
.glow { position: fixed; z-index: 0; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(120px); opacity: .11; pointer-events: none; animation: glow-drift 17s ease-in-out infinite alternate; }
.glow--one { top: -26vw; right: -12vw; background: #5270ff; }
.glow--two { bottom: -30vw; left: -17vw; background: var(--yellow); animation-delay: -8s; }
.page { position: relative; z-index: 1; width: min(calc(100% - 80px), var(--max)); min-height: 100vh; margin-inline: auto; }

.header { min-height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 13px; }
.brand__mark { position: relative; width: 35px; height: 35px; display: block; overflow: hidden; border: 2px solid var(--yellow); transform: skew(-8deg); transition: transform .35s ease, background .35s ease; }
.brand__mark::before, .brand__mark::after { position: absolute; left: 7px; width: 18px; height: 3px; content: ""; background: var(--yellow); }
.brand__mark::before { top: 9px; animation: mark-line 2.6s ease-in-out infinite alternate; }
.brand__mark::after { top: 21px; animation: mark-line 2.6s .5s ease-in-out infinite alternate-reverse; }
.brand__mark i { position: absolute; top: 15px; left: 7px; width: 10px; height: 3px; background: var(--yellow); }
.brand:hover .brand__mark { transform: skew(0deg) rotate(3deg); background: rgba(255,216,77,.1); }
.brand__word { font-size: 30px; font-weight: 950; letter-spacing: -.075em; }
.header__section { color: var(--ice); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.header__section i { color: var(--yellow); font-style: normal; }
.header__status { justify-self: end; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.header__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,216,77,.35); animation: status-pulse 2.2s ease-out infinite; }

.main { min-height: 750px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(420px,.7fr); gap: clamp(60px,7vw,120px); align-items: center; padding: 70px 0 80px; }
.intro, .access { min-width: 0; }
.intro { animation: rise-in .75s .06s both; }
.intro__counter { display: flex; align-items: center; gap: 11px; max-width: 650px; margin-bottom: 44px; color: #778bc8; font: 700 11px/1 Consolas, monospace; }
.intro__counter i { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,216,77,.65), transparent); }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 23px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .22em; }
.eyebrow::before { width: 36px; height: 3px; content: ""; background: var(--yellow); animation: eye-line 2.4s ease-in-out infinite alternate; }
h1 { margin: 0; font-size: clamp(71px,7.2vw,116px); line-height: .88; letter-spacing: -.065em; }
h1 em { color: var(--yellow); font-style: normal; }
h1 > span { color: var(--yellow); }
.lead { max-width: 680px; margin: 34px 0 0; color: #b7c5ed; font-size: 17px; line-height: 1.7; }
.portal-modules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 760px; margin-top: 49px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.portal-modules article { min-height: 105px; display: flex; gap: 13px; padding: 20px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); transition: background .25s, transform .25s; }
.portal-modules article:hover { z-index: 1; transform: translateY(-5px); background: rgba(18,60,241,.17); }
.portal-modules article > span { color: var(--yellow); font: 700 11px Consolas, monospace; }
.portal-modules strong { display: block; margin-bottom: 8px; font-size: 14px; }
.portal-modules small { display: block; color: #8294c9; font-size: 12px; line-height: 1.4; }

.access { position: relative; width: 100%; max-width: 535px; justify-self: end; animation: rise-in .78s .16s both; }
.access__rail { position: absolute; z-index: 2; top: 52px; right: -28px; display: grid; gap: 7px; }
.access__rail span { width: 7px; height: 7px; background: var(--yellow); animation: rail-blink 1.6s infinite; }
.access__rail span:nth-child(2) { animation-delay: .28s; }
.access__rail span:nth-child(3) { animation-delay: .56s; }
.login-card { position: relative; padding: 39px 39px 31px; border-top: 6px solid var(--yellow); color: #101c40; background: rgba(247,249,255,.985); box-shadow: 0 34px 100px rgba(0,0,0,.35); }
.login-card::before { position: absolute; z-index: -1; top: 15px; right: -15px; bottom: -15px; left: 15px; content: ""; border: 1px solid rgba(255,216,77,.44); pointer-events: none; }
.login-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.kicker { color: #3552ba; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.login-card h2 { margin: 10px 0 0; font-size: 37px; letter-spacing: -.045em; }
.shield { position: relative; width: 43px; height: 48px; flex: 0 0 auto; background: var(--cobalt); clip-path: polygon(50% 0,100% 16%,92% 70%,50% 100%,8% 70%,0 16%); }
.shield::before { position: absolute; top: 15px; left: 14px; width: 15px; height: 12px; content: ""; border: 3px solid var(--yellow); border-top: 0; }
.shield i { position: absolute; top: 9px; left: 17px; width: 9px; height: 10px; border: 3px solid var(--yellow); border-bottom: 0; border-radius: 7px 7px 0 0; }
.login-card__intro { margin: 17px 0 0; color: #667293; font-size: 14px; line-height: 1.55; }
.login-form { display: grid; gap: 9px; margin-top: 27px; }
.login-form > label { margin-top: 7px; color: #3d4c78; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.field { position: relative; }
.field input { width: 100%; height: 56px; padding: 0 96px 0 16px; border: 1px solid #c9d1e9; border-radius: 0; outline: 0; color: #101c40; background: #eef2ff; font-size: 15px; transition: border-color .2s, background .2s, box-shadow .2s; }
.field input:focus { border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 3px rgba(18,60,241,.12); }
.field__code, .password-toggle { position: absolute; top: 50%; right: 15px; color: #7d89aa; transform: translateY(-50%); }
.field__code { font: 800 12px Consolas, monospace; }
.password-toggle { padding: 7px 0; border: 0; color: #3853b4; background: transparent; cursor: pointer; font-size: 11px; font-weight: 900; }
.form-row { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.remember { display: flex; align-items: center; gap: 9px; color: #657294; font-size: 13px; }
.remember input { width: 16px; height: 16px; accent-color: var(--cobalt); }
.session { color: #8691af; font: 700 11px Consolas, monospace; }
.submit { height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border: 0; color: var(--navy); background: var(--yellow); cursor: pointer; font-size: 13px; font-weight: 950; letter-spacing: .12em; transition: transform .2s, box-shadow .2s, background .2s; }
.submit:hover { transform: translateY(-2px); background: #ffe36f; box-shadow: 0 10px 28px rgba(255,216,77,.28); }
.submit span:last-child { font-size: 23px; font-weight: 400; }
.login-error { display: flex; gap: 12px; margin-top: 5px; padding: 14px; border-left: 4px solid var(--danger); color: #6f1f35; background: #fff0f3; animation: error-in .35s both; }
.login-error[hidden] { display: none; }
.login-error__mark { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--danger); font-weight: 900; }
.login-error strong { font-size: 13px; }
.login-error p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.login-card__foot { display: flex; gap: 12px; margin-top: 23px; padding-top: 19px; border-top: 1px solid #d9dfef; color: #77819c; }
.login-card__foot p { margin: 0; font-size: 12px; line-height: 1.5; }
.lock { position: relative; width: 15px; height: 14px; flex: 0 0 auto; margin-top: 4px; background: var(--cobalt); }
.lock::before { position: absolute; top: -7px; left: 3px; width: 7px; height: 8px; content: ""; border: 2px solid var(--cobalt); border-bottom: 0; border-radius: 6px 6px 0 0; }
.download { display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 15px; margin-top: 23px; padding: 17px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.035); transition: border-color .25s, background .25s, transform .25s; }
.download:hover { transform: translateY(-3px); border-color: rgba(255,216,77,.65); background: rgba(18,60,241,.18); }
.download__icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,216,77,.55); color: var(--yellow); font-size: 24px; }
.download small { display: block; margin-bottom: 5px; color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.download strong { display: block; font-size: 13px; }
.download__meta { color: #7387c2; font: 700 11px Consolas, monospace; }
.footer { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #7185c0; font-size: 11px; font-weight: 700; letter-spacing: .09em; }

@keyframes rise-in { from { opacity: 0; transform: translateY(23px); } to { opacity: 1; transform: none; } }
@keyframes glow-drift { to { transform: translate(60px,-40px) scale(1.12); } }
@keyframes mark-line { to { width: 9px; transform: translateX(8px); } }
@keyframes status-pulse { to { box-shadow: 0 0 0 10px rgba(255,216,77,0); } }
@keyframes eye-line { to { width: 53px; } }
@keyframes rail-blink { 50% { opacity: .2; transform: scale(.7); } }
@keyframes error-in { from { opacity: 0; transform: translateY(-7px); } }

@media (max-width: 1110px) {
  .main { grid-template-columns: 1fr; gap: 62px; }
  .intro__counter { max-width: none; }
  .access { max-width: 620px; justify-self: start; }
  h1 { font-size: clamp(72px,10vw,108px); }
}
@media (max-width: 720px) {
  .page { width: calc(100% - 38px); }
  .header { min-height: 81px; grid-template-columns: 1fr auto; }
  .header__section { display: none; }
  .header__status { font-size: 10px; }
  .main { gap: 49px; padding: 54px 0 62px; }
  .intro__counter { margin-bottom: 34px; }
  h1 { font-size: clamp(57px,15vw,88px); }
  .lead { font-size: 16px; }
  .portal-modules { grid-template-columns: 1fr; margin-top: 38px; }
  .portal-modules article { min-height: 78px; }
  .access__rail { display: none; }
  .login-card { padding: 31px 23px 26px; }
  .login-card::before { display: none; }
  .download { margin-top: 16px; }
  .footer { min-height: 126px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
}
@media (max-width: 390px) {
  .page { width: calc(100% - 28px); }
  .header__status { display: none; }
  .header { grid-template-columns: 1fr; }
  .brand__word { font-size: 27px; }
  h1 { font-size: 55px; }
  .eyebrow { font-size: 10px; letter-spacing: .15em; }
  .login-card { padding: 27px 18px 23px; }
  .login-card h2 { font-size: 33px; }
  .form-row { align-items: flex-start; flex-direction: column; padding: 7px 0; }
  .download { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .download__icon { width: 36px; height: 36px; }
  .download__meta { display: none; }
}
@media (max-width: 330px) {
  h1 { font-size: 50px; }
  .login-card { padding-inline: 14px; }
  .download strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
