/* Sportdata Croatia's sign-in page: the office's tokens (sdcro-office, direction C).
   Phone: the whole screen, no scrolling. Wider: a card in the middle. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/_sd/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/_sd/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url('/_sd/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url('/_sd/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #f1efea; --card: #ffffff; --soft: #f7f5f1; --line: #e5e1d9; --field: #8c8678;
  --text: #1a2230; --muted: #5b6270; --accent: #13447e; --primary: #c41e26; --primary-hover: #a9181f;
  --primary-text: #ffffff; --error: #b4232a; --error-bg: #fdecec;
  --shadow: 0 1px 2px rgba(40,30,20,.05), 0 8px 28px rgba(40,30,20,.08);
  --focus: #13447e;
  --hero-bg: #13447e; --hero-hover: #0f3a6c; --hero-text: #ffffff;
  --navy-bg: #e7eef7; --navy-ic: #13447e; --red-bg: #fbeaea; --red-ic: #c41e26;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12; --card: #14161c; --soft: #1a1d24; --line: #272b34; --field: #6c7383;
    --text: #ecebe8; --muted: #a9adb6; --accent: #a9c6ee; --primary: #d42a31; --primary-hover: #e0393f;
    --primary-text: #ffffff; --error: #ff8a8f; --error-bg: rgba(255,128,133,.12);
    --shadow: none; --focus: #a9c6ee;
    --hero-bg: #173a66; --hero-hover: #1c4476; --hero-text: #ffffff;
    --navy-bg: rgba(169,198,238,.13); --navy-ic: #a9c6ee; --red-bg: rgba(255,128,133,.13); --red-ic: #ff9a9e;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Wider screens: a card. */
.screen {
  width: 100%; max-width: 420px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 32px 30px 22px;
}
.top { margin-bottom: 26px; }
.body { display: flex; flex-direction: column; }
.help { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* Phones: the whole screen, logo at the top, the form in the middle, help at the bottom. */
@media (max-width: 559px) {
  body { display: block; padding: 0; background: var(--card); }
  .screen {
    max-width: none; min-height: 100vh; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none;
    padding: max(20px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  }
  .top { margin-bottom: 0; }
  .body { flex: 1; justify-content: center; padding: 20px 0; }
  .help { margin-top: 0; }
}
@media (max-width: 559px) and (max-height: 620px) {
  .body { padding: 12px 0; }
  .sub { margin-bottom: 14px; }
  .field { margin-bottom: 12px; }
  .check { margin-bottom: 12px; }
  .logo img { height: 32px; }
}

.logo img { display: block; height: 38px; width: auto; }
h1 { margin: 0; font: 700 26px/1.2 'Schibsted Grotesk', 'Inter', sans-serif; letter-spacing: -0.01em; }
.sub { margin: 6px 0 22px; color: var(--muted); }
.muted { color: var(--muted); }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 6px; }
input[type=text], input[type=password] {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--field);
  background: var(--card); color: var(--text); font: inherit; font-size: 16px;
}
input::placeholder { color: var(--muted); opacity: .8; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.eye {
  position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
}
.eye:hover, .eye[aria-pressed=true] { color: var(--text); background: var(--soft); }
.caps { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 14px; margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.error { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--error-bg); color: var(--error); font-size: 14px; font-weight: 500; }
button { font: inherit; }
button, a, label[for], .check { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
.primary {
  width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-text);
  font-weight: 600; font-size: 15.5px;
}
.primary:hover:not(:disabled) { background: var(--primary-hover); }
.ghost { width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 500; }
.ghost:hover:not(:disabled) { background: var(--soft); }
#c-retry { margin-top: 14px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-weight: 500; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help a, .sub a { color: var(--accent); }

/* Consent */
.wait { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.wait p { margin: 0; display: grid; }
.wait strong { font: 700 20px/1.25 'Schibsted Grotesk', 'Inter', sans-serif; }
.spinner {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.perms { list-style: none; margin: -8px 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.perms li { padding: 11px 14px; display: flex; gap: 10px; align-items: center; }
.perms li + li { border-top: 1px solid var(--line); }
.perms li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.note { margin: -6px 0 16px; font-size: 13.5px; color: var(--muted); }
.who { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
/* Signed in: the team's apps (wider card; on phones the screen scrolls). */
body.wide .screen { max-width: 780px; }
body.wide .body { justify-content: flex-start; }
.in-head { display: grid; gap: 4px; margin-bottom: 18px; }
.acct { margin: 0; color: var(--muted); font-size: 14px; }
.acct strong { color: var(--text); }
.notice { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; text-decoration: none;
  background: var(--hero-bg); color: var(--hero-text);
}
.hero:hover { background: var(--hero-hover); }
.hero-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); }
.hero-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hero-t strong { font: 700 19px/1.2 'Schibsted Grotesk', 'Inter', sans-serif; }
.hero-t span { font-size: 13.5px; opacity: .85; }
.hero-go { flex: none; opacity: .9; }
.guide { display: grid; gap: 6px; margin-bottom: 12px; }
.hero-guide { background: var(--primary); }
.hero-guide:hover { background: var(--primary-hover); }
.guide-hide { justify-self: end; font-size: 13px; color: var(--muted); }
.grp { margin: 22px 0 10px; font: 600 12px/1 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  display: grid; align-content: start; gap: 3px; padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); text-decoration: none; min-height: 108px;
}
.tile:hover { background: var(--soft); border-color: var(--field); }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tile strong { font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.tile > span:not(.ic) { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.t-navy .ic { background: var(--navy-bg); color: var(--navy-ic); }
.t-red .ic { background: var(--red-bg); color: var(--red-ic); }
.t-grey .ic { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
[hidden] { display: none !important; }
