/* MinFastighet, inloggning. Riktning C, Dygnet. Följer webbläsarens ljusa eller mörka läge. */
@font-face { font-family: "Albert Sans"; font-weight: 400; font-display: swap; src: url(typsnitt/albert-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 500; font-display: swap; src: url(typsnitt/albert-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 600; font-display: swap; src: url(typsnitt/albert-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 700; font-display: swap; src: url(typsnitt/albert-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --kobolt: #2D43E6; --bg: #EEF1F7; --card: #FFFFFF; --t1: #0E1330; --t2: #4D5675; --t3: #6F7690;
  --linje: #DCE1EC; --edge: #D5DAE8; --accent: #2D43E6; --badge-bg: #FFF3D6; --badge-fg: #7A5300;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0A0E22; --card: #141A38; --t1: #EEF1FA; --t2: #A9B1CF; --t3: #8790B2;
          --linje: #252D57; --edge: #343D70; --accent: #8E9CFF; --badge-bg: rgba(242,178,46,.16); --badge-fg: #F7C65A; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--t1); font: 400 16px/1.5 "Albert Sans", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
p, h1 { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lg { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 16px; }

.brand { position: relative; overflow: hidden; color: #fff; border-radius: 30px; padding: 44px 48px 36px;
  background: radial-gradient(120% 80% at 85% 0%, #4458F0 0%, var(--kobolt) 55%);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-decoration: none; justify-self: start; }
.logo small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .75; }
.mark { display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; }
.mark i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.mark i:nth-child(2), .mark i:nth-child(6) { opacity: .45; } .mark i:nth-child(4) { opacity: .7; }
.h1 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.sub { font-size: 18px; color: rgba(255,255,255,.86); max-width: 36ch; margin-top: 16px; }
.sky { display: flex; align-items: flex-end; justify-content: center; gap: 4%; align-self: end; min-height: 0; }
.sky svg { display: block; height: auto; max-height: 100%; }
.sky .sk1 { width: 28%; } .sky .sk2 { width: 40%; } .sky .sk3 { width: 17%; }

.dygn { display: grid; gap: 8px; }
.lrad { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; }
.lrad i { height: 22px; border-radius: 6px; background: #fff; opacity: .2; transition: opacity .6s; }
.lrad .l0 { opacity: .15; } .lrad .l1 { opacity: .24; } .lrad .l2 { opacity: .34; } .lrad .l3 { opacity: .43; } .lrad .l4 { opacity: .53; }
.lrad .l5 { opacity: .62; } .lrad .l6 { opacity: .72; } .lrad .l7 { opacity: .81; } .lrad .l8 { opacity: .91; } .lrad .l9 { opacity: 1; }
.lrad i.sen { opacity: .1; }
.lrad i.now { opacity: 1; box-shadow: 0 0 0 2px var(--kobolt), 0 0 0 4px #fff; }
.hrs { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.7); }

.form { display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 32px; }
.box { width: min(400px, 100%); display: grid; gap: 18px; justify-items: start; }
.box > * { width: 100%; }
.box > .badge { width: 44px; }
.box h1 { font-size: 42px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.box h1.h-sm { font-size: 32px; letter-spacing: -.025em; text-wrap: balance; }
.lede { font-size: 16px; color: var(--t2); margin-top: -8px; }
.msbtn, .btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 58px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.msbtn { background: var(--card); color: var(--t1); box-shadow: 0 0 0 1.5px var(--edge), 0 12px 26px -16px rgba(14,19,48,.45); }
.msbtn:hover { box-shadow: 0 0 0 1.5px var(--accent), 0 14px 30px -16px rgba(14,19,48,.55); }
.btn { background: var(--kobolt); color: #fff; box-shadow: 0 12px 26px -14px rgba(45,67,230,.7); }
.btn:hover { background: #2232B8; }
.msbtn:active, .btn:active { transform: translateY(1px); }
.mslogo { width: 20px; height: 20px; flex: none; }
.mfa { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--t2); line-height: 1.45; }
.mfa .ic { color: var(--accent); margin-top: 1px; flex: none; }
hr { border: 0; height: 1px; background: var(--linje); margin: 0; }
.help { font-size: 14px; color: var(--t2); }
.help b { color: var(--t1); font-weight: 600; }
.help a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }
.badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--badge-bg); color: var(--badge-fg); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12.5px; color: var(--t3); }
.foot a { color: var(--t3); text-decoration: none; }
.foot a:hover { color: var(--t1); }

@media (max-width: 900px) {
  .lg { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 0; padding: 0; background: var(--kobolt); }
  .brand { border-radius: 0; padding: 20px 16px 24px; gap: 16px; }
  .h1 { font-size: 34px; margin-top: 10px; }
  .sub { display: none; }
  .sky { gap: 3%; } .sky .sk1 { width: 30%; } .sky .sk2 { width: 44%; } .sky .sk3 { width: 18%; }
  .lrad { gap: 3px; } .lrad i { height: 16px; border-radius: 4px; }
  .hrs { display: none; }
  .form { background: var(--bg); border-radius: 30px 30px 0 0; padding: 26px 16px 24px; margin-top: -8px; position: relative; gap: 28px; }
  .box { gap: 14px; }
  .box h1 { font-size: 26px; letter-spacing: -.02em; }
  .box h1.h-sm { font-size: 24px; }
  .lede { margin-top: -4px; }
}
@media (max-width: 900px) and (max-height: 700px) { .sky { display: none; } }
@media (prefers-reduced-motion: reduce) { .lrad i, .msbtn, .btn { transition: none; } }
