@font-face { font-family: Montserrat; src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../assets/fonts/Montserrat-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: #f7fbff; background: #041a2e; font: 400 1rem/1.5 Montserrat, sans-serif; color-scheme: dark; }
.login { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; padding: clamp(32px, 8vh, 85px) 6.6vw; }
.backdrop { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #041b30 0%, #041b30fa 29%, #041b30ed 35%, #041b3055 44%, transparent 57%), url('../assets/images/wDSC_9215.jpg?v=2') center 43% / cover no-repeat; }
.backdrop::before, .backdrop::after { content: ''; position: absolute; inset: 0; }
.backdrop::before { width: 49%; background: radial-gradient(ellipse at 49% 0%, #006b9580, transparent 62%), repeating-linear-gradient(90deg, #c0e0ff2b 0 1px, transparent 1px 14vw) 3.4vw 0 / 100% 100% no-repeat; mask-image: linear-gradient(90deg, #000 65%, transparent); }
.backdrop::after { top: auto; height: 27%; width: 48%; opacity: .20; background: url('../assets/images/kvadrat_pattern-02.png') left bottom / 300px auto repeat; mask-image: linear-gradient(0deg,#000,transparent), linear-gradient(90deg,#000 65%,transparent); mask-composite: intersect; }
.panel { width: min(100%, 29.8rem); display: flex; flex-direction: column; }
.brand { position: relative; width: min(100%, 27rem); margin-bottom: clamp(30px, 6vh, 67px); }
.brand img { display: block; width: 100%; height: auto; }
.brand-light { position: absolute; inset: 0; filter: brightness(0) invert(1); clip-path: inset(0 0 0 26%); }
h1 { margin: 0; font-size: clamp(2.15rem, 3.68vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.038em; }
h1::after { content: ''; display: block; margin: clamp(15px, 2.8vh, 30px) 0; width: 7.2rem; height: 5px; background: #08add5; }
.subtitle { margin: 0 0 clamp(22px, 6vh, 60px); font-size: clamp(1.02rem, 1.48vw, 1.55rem); }
.field + .field { margin-top: clamp(12px, 2.15vh, 22px); }
.control { display: flex; align-items: center; gap: .75rem; min-height: clamp(54px, 7.1vh, 68px); padding: 0 .65rem 0 1.25rem; border: 1px solid #879bab; border-radius: 17px; background: #041a2ea6; color: #c2d0dc; }
.control:focus-within { outline: 2px solid #53dafa; outline-offset: 3px; }
.control:has([aria-invalid="true"]) { border-color: #ffaca8; }
svg { flex: none; width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
input, button { font: inherit; }
input { flex: 1; width: 0; min-height: 50px; border: 0; outline: 0; padding: 0; background: transparent; color: #fff; font-size: clamp(1rem, 1.32vw, 1.3rem); }
input::placeholder { color: #c2d0dc; opacity: 1; }
input::-ms-reveal { display: none; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#visibility { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: transparent; color: inherit; border: 0; border-radius: 7px; }
#visibility:hover { background: #ffffff19; }
.slash { display: none; }
[aria-pressed="true"] .slash { display: block; }
.submit { width: 100%; min-height: clamp(54px, 7.45vh, 72px); margin-top: clamp(20px, 4vh, 42px); border: 0; border-radius: 17px; background: #0cb2d9; color: #031b30; font-size: clamp(1.1rem, 1.55vw, 1.6rem); font-weight: 700; }
.submit:hover:enabled { background: #4cdafa; }
.submit:disabled { opacity: .65; cursor: default; }
.error { margin: .4rem 0 0; color: #ffc0bc; font-size: .9rem; }
#demo, #result, footer { font-size: .875rem; color: #c5d5e2; }
#demo, #result { margin: .65rem 0 0; }
#result:empty { margin: 0; }
footer { margin-top: auto; padding-top: clamp(24px, 5vh, 54px); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 761px) and (max-width: 1200px) {
  .panel { width: min(44vw, 29.8rem); }
  .backdrop { background-image: linear-gradient(90deg,#041b30 0%,#041b30fa 33%,#041b30cf 49%,transparent 69%), url('../assets/images/wDSC_9215.jpg?v=2'); background-position: center, 61% 43%; }
}
@media (max-width: 760px) {
  .login { padding: clamp(24px, 7vw, 54px); }
  .panel { margin-inline: auto; }
  .backdrop { background: linear-gradient(180deg,#041b3066 0%,#041b30cd 145px,#041b30 315px), url('../assets/images/wDSC_9215.jpg?v=2') center top / 100% auto no-repeat, #041b30; }
  .backdrop::before, .backdrop::after { width: 100%; }
  .brand { width: min(100%, 18rem); }
  .subtitle { margin-bottom: 24px; }
}
@media (forced-colors: active) {
  .submit, #visibility { border: 1px solid ButtonText; }
  .brand { background: #041b30; forced-color-adjust: none; }
}


