/* Logg inn – administrasjon. Lexend, BF-logo, husk meg */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Lexend', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/service-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.login-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(46, 63, 85, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 340px;
  max-width: 420px;
  overflow: hidden;
  font-family: 'Lexend', sans-serif;
}

.login-box-header {
  background: linear-gradient(135deg, #2E3F55 0%, #1a2635 100%);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.login-box-logo {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1rem;
}

.login-box-header h1 {
  margin: 0;
  color: #fff;
  font-family: 'Lexend', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-box-body {
  padding: 1.75rem 2rem 2rem;
}

.login-box .error {
  color: #c0392b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: 'Lexend', sans-serif;
}

.login-box label {
  display: block;
  margin-bottom: 0.35rem;
  color: #2E3F55;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Lexend', sans-serif;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.1rem;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  color: #2E3F55;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-box input:focus {
  outline: none;
  border-color: #3EACC4;
  box-shadow: 0 0 0 3px rgba(62, 172, 196, 0.15);
}

.login-box input::placeholder {
  color: #8b9cad;
}

.login-box-options {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-family: 'Lexend', sans-serif;
}

.login-box-options input[type="checkbox"] {
  width: auto;
  margin: 0 0.5rem 0 0;
  accent-color: #3EACC4;
}

.login-box-options label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}

.login-box button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #3EACC4 0%, #2d8a9d 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s;
}

.login-box button[type="submit"]:hover {
  opacity: 0.95;
}

.login-box button[type="submit"]:active {
  transform: scale(0.99);
}
