/* static/css/login.css */

.login-page {
  position: relative;
  min-height: 100vh;
}

/* Bakgrundsbild */
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/static/img/live_thl-bg.png") center / cover no-repeat;
  opacity: 0.75;
  z-index: -2;
  pointer-events: none;
}

/* Vit overlay för läsbarhet */
.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.50);
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   MOBILANPASSAD DOMAR-INLOGGNING (QR-scan)
   Ren, mörk helskärmsvy som matchar domar-/linjemannasidorna.
   16px input-text = ingen iOS-autozoom vid fokus.
   ========================================================= */
.ref-login {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #14261d;            /* samma mörkgröna ton som domarsidan */
  box-sizing: border-box;
  z-index: 10;
}

.ref-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 28px 22px 26px;
  box-sizing: border-box;
}

.ref-login-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
}

.ref-login-sub {
  margin: 0 0 22px;
  color: #7fd6a0;                /* grön accent */
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.ref-login-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 53, 69, 0.15);
  color: #ff9aa2;
  font-size: 15px;
  text-align: center;
}

/* Informationsruta – samma form som felrutan men neutral ton. Visas när
   man redan är inloggad men saknar omgångens PIN. */
.ref-login-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(36, 118, 173, 0.18);
  color: #a9d3ef;
  font-size: 15px;
  text-align: center;
}

.ref-login-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 16px 16px;
  font-size: 16px;               /* 16px → ingen auto-zoom på iOS */
  line-height: 1.2;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}

.ref-login-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.ref-login-input:focus {
  outline: none;
  border-color: #4caf7d;
  background: rgba(255, 255, 255, 0.12);
}

.ref-login-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 17px 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: #3f9e63;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ref-login-btn:active {
  background: #348055;
}
