:root {
  color-scheme: light;
  --red: #bd0c21;
  --red-dark: #970816;
  --ink: #151821;
  --muted: #6f7788;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.elib-login-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background: #b9c0c8 url("/static/library/novinair-737-login-bg-v2.png?v=20261014-1") center / cover no-repeat fixed;
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}

body.elib-login-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #11182710, transparent 38%, #fff8f64d 66%, #fffaf5a8);
  pointer-events: none;
}

.brand-ribbon {
  position: fixed;
  z-index: -1;
  top: -32vh;
  left: 71%;
  width: clamp(190px, 20vw, 390px);
  height: 165vh;
  transform: rotate(-28deg);
  background: linear-gradient(90deg, #ed1024 0 31%, #b2081a 31% 63%, #f4d9dc 63% 78%, #ffffffc9 78%);
  box-shadow: 0 0 45px #b20b1c1c;
  opacity: .92;
}

.brand-ribbon::after {
  position: absolute;
  right: -51vw;
  bottom: -8vh;
  width: 58vw;
  height: 31vh;
  content: "";
  background: linear-gradient(135deg, #bd071c, #e41025);
}

.login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(410px, 500px) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 130px);
  width: min(1500px, calc(100% - 70px));
  min-height: 100svh;
  margin: auto;
  padding: 38px 0;
}

.login-card {
  grid-column: 2;
  width: 100%;
  padding: clamp(28px, 3.6vh, 42px) 47px 25px;
  border: 1px solid #ffffffcc;
  border-radius: 28px;
  background: #ffffffee;
  box-shadow: 0 25px 70px #3510194d, inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.login-brand { display: grid; justify-items: center; text-align: center; }
.login-brand img { width: 124px; height: 108px; object-fit: contain; }
.login-brand b { margin-top: -4px; color: #17171b; font: 800 32px/1 Arial, sans-serif; letter-spacing: 1px; }
.login-brand h1 { margin: 4px 0 0; color: var(--red); font-size: clamp(38px, 3vw, 50px); letter-spacing: -1.8px; line-height: 1; }
.login-brand p { margin: 11px 0 25px; color: var(--muted); font-size: 17px; }

.login-form { display: grid; gap: 11px; }

.login-field {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 55px;
  padding: 0 18px;
  border: 1px solid #c9ced7;
  border-radius: 11px;
  background: #fbfcfdde;
  box-shadow: inset 0 1px 2px #2631440a;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-field:focus-within { border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px #bd0c2114; }
.login-field > svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: #252a34; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-field input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; color: #292d37; background: transparent; font: 400 17px Arial, sans-serif; }
.login-field input::placeholder { color: #838b9c; opacity: 1; }

.password-toggle { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; color: #5d6471; background: transparent; cursor: pointer; }
.password-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-options { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.remember-option { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; }
.remember-option input { position: absolute; opacity: 0; pointer-events: none; }
.remember-option span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #aab0ba; border-radius: 4px; color: transparent; background: #fff; font-size: 15px; font-weight: 700; }
.remember-option input:checked + span { border-color: var(--red); color: #fff; background: var(--red); }
.remember-option input:focus-visible + span { outline: 3px solid #bd0c2130; outline-offset: 2px; }
.forgot-password { padding: 6px 0; border: 0; color: #d20b26; background: transparent; cursor: pointer; font: 400 14px Arial, sans-serif; }
.forgot-password:hover { text-decoration: underline; }
.recovery-note { margin: -4px 0 2px; padding: 9px 11px; border-radius: 8px; color: #83101f; background: #fff0f2; text-align: center; font: 12px/1.7 Tahoma, Arial, sans-serif; }
.recovery-note[hidden] { display: none; }

.primary-login-button,
.windows-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.primary-login-button { border: 0; color: #fff; background: linear-gradient(135deg, #c81026, #a50719); box-shadow: 0 11px 26px #97081735; font: 500 20px Arial, sans-serif; }
.primary-login-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary-login-button:hover { transform: translateY(-2px); box-shadow: 0 15px 31px #9708174a; }

.login-divider { display: flex; align-items: center; gap: 20px; margin: 7px 0 1px; color: #7c8390; font-size: 15px; }
.login-divider::before,
.login-divider::after { height: 1px; content: ""; flex: 1; background: #d0d4dc; }

.windows-login-button { border: 1px solid #cbd0d8; color: #171b22; background: #fbfcfddd; font: 500 17px Arial, sans-serif; }
.windows-login-button svg { width: 27px; height: 27px; fill: #c30920; }
.windows-login-button:hover { transform: translateY(-1px); border-color: #b4bac4; background: #fff; }

.login-error { margin-bottom: 13px; padding: 10px 12px; border: 1px solid #efbdc5; border-radius: 9px; color: #9d1023; background: #fff0f2; text-align: center; font: 700 12px/1.6 Tahoma, Arial, sans-serif; }
.login-card-footer { margin-top: 23px; color: #596170; text-align: center; font-size: 12px; }
.login-card-footer i { display: inline-block; width: 1px; height: 13px; margin: 0 12px -2px; background: #9da3ad; }

.library-features { grid-column: 3; display: grid; gap: 30px; justify-self: start; width: min(310px, 100%); }
.library-features article { display: flex; align-items: center; gap: 19px; }
.library-features svg { width: 49px; height: 49px; flex: 0 0 auto; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 9px #fff8); }
.library-features div { display: grid; gap: 3px; }
.library-features strong { color: #151821; font-size: 19px; }
.library-features span { color: #697184; font-size: 16px; }

.corner-copy { position: fixed; z-index: 3; margin: 0; color: #171923; letter-spacing: 6px; line-height: 1.5; font-size: 13px; }
.corner-copy::after { display: block; width: 56px; height: 4px; margin-top: 10px; content: ""; background: #ed0b24; }
.corner-copy--top-left { top: 5.5vh; left: 5.1vw; }
.corner-copy--top-right { top: 5.5vh; right: 5.4vw; }
.corner-copy--bottom-left { bottom: 3.3vh; left: 3.5vw; color: #fff; text-shadow: 0 2px 10px #000b; }
.script-copy { position: fixed; z-index: 3; right: 4.2vw; bottom: 6.5vh; margin: 0; transform: rotate(-7deg); color: #fff; text-align: center; text-shadow: 0 2px 8px #630713; font: italic 30px/1.05 cursive; }
.script-copy::after { display: block; width: 56px; height: 4px; margin: 13px auto 0; content: ""; background: #ff2437; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-height: 820px) and (min-width: 901px) {
  .login-layout { padding-block: 20px; }
  .login-card { padding: 23px 40px 19px; }
  .login-brand img { width: 96px; height: 84px; }
  .login-brand b { font-size: 25px; }
  .login-brand h1 { font-size: 39px; }
  .login-brand p { margin: 8px 0 17px; }
  .login-field { height: 49px; }
  .primary-login-button, .windows-login-button { min-height: 52px; }
  .login-card-footer { margin-top: 16px; }
  .library-features { gap: 23px; }
}

@media (max-width: 1080px) {
  .login-layout { grid-template-columns: 1fr minmax(390px, 480px) 1fr; }
  .library-features { display: none; }
  .corner-copy--top-right { display: none; }
}

@media (max-width: 640px) {
  body.elib-login-page { overflow: auto; background-position: 35% center; }
  body.elib-login-page::before { background: #17202a45; }
  .brand-ribbon, .corner-copy, .script-copy { display: none; }
  .login-layout { display: flex; width: 100%; min-height: 100svh; padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom)); }
  .login-card { width: min(100%, 440px); margin: auto; padding: 25px 22px 21px; border-radius: 23px; }
  .login-brand img { width: 99px; height: 86px; }
  .login-brand b { font-size: 25px; }
  .login-brand h1 { font-size: 37px; }
  .login-brand p { margin: 8px 0 20px; font-size: 14px; }
  .login-field { height: 52px; }
  .login-options { gap: 10px; }
  .remember-option, .forgot-password { font-size: 12px; }
  .primary-login-button, .windows-login-button { min-height: 55px; }
  .login-card-footer { font-size: 10px; }
}

@media (max-width: 390px) {
  .login-card { padding-inline: 17px; }
  .login-brand img { width: 92px; height: 80px; }
  .login-options { align-items: flex-start; flex-direction: column; gap: 2px; }
  .forgot-password { align-self: flex-end; }
}

/* 2026-10-14 hangar login composition: protect the aircraft and improve contrast. */
body.elib-login-page{background-image:url("/static/library/novinair-737-login-bg-v2.png?v=20261014-2");background-position:center center}
body.elib-login-page::before{background:linear-gradient(90deg,rgba(2,8,20,.03) 0 46%,rgba(2,10,25,.20) 58%,rgba(2,10,25,.58) 100%)}
.brand-ribbon,.script-copy,.corner-copy--top-right{display:none}
.login-layout{grid-template-columns:minmax(0,1fr) minmax(390px,470px);gap:0;width:min(1600px,100%);padding:34px clamp(28px,5vw,92px) 48px}
.login-card{position:relative;grid-column:2;justify-self:end;padding-inline:42px;border-color:rgba(255,255,255,.76);background:rgba(255,255,255,.92);box-shadow:0 28px 90px rgba(0,8,22,.52),inset 0 1px 0 #fff}
.login-card::before{position:absolute;top:0;right:34px;left:34px;height:3px;border-radius:0 0 4px 4px;content:"";background:linear-gradient(90deg,transparent,#c99a3a 28%,#bd0c21 72%,transparent)}
.library-features{display:none}
.corner-copy{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.92)}
.corner-copy::after{background:#d6a449}
@media(max-width:1080px) and (min-width:641px){.login-layout{grid-template-columns:minmax(0,1fr) minmax(380px,450px);padding-inline:32px}.login-card{grid-column:2}}
@media(max-width:640px){body.elib-login-page{background-position:27% center}body.elib-login-page::before{background:rgba(1,8,20,.34)}.login-layout{padding:max(18px,env(safe-area-inset-top)) 14px max(38px,env(safe-area-inset-bottom))}.login-card{background:rgba(255,255,255,.91);box-shadow:0 24px 65px rgba(0,6,18,.56)}}
