/* Base reset for login-siden */
body {
  margin: 0;
  padding: 3rem 3rem;
  background: #f4f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: #0b1623;
}

/* Wrapper – virker selv uden master */
.login-form {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Login card */
.login-form form {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 2.25rem 2rem;
  border-radius: 18px;
  box-shadow:
    0 14px 34px rgba(11,22,35,0.10),
    0 2px 10px rgba(11,22,35,0.05);
}

/* Headings */
.login-form h4 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #0b1623;
}

.login-form h4 + p,
.login-form h4 + hr {
  display: none;
}

/* Labels */
.login-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #071026;
}

/* Inputs */
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #c8cfdb;
  background: #f8fbff;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: #004f94;
  box-shadow: 0 0 0 3px rgba(0,79,148,0.15);
  background: #ffffff;
}

/* Spacing */
.login-form .mb-3 {
  margin-bottom: 1.25rem;
}

/* Remember me – skjult i første omgang */
.login-form .form-check {
  display: none;
}

/* Login button */
.login-form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  background: #004f94;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              background 0.15s ease;
}

.login-form button[type="submit"]:hover {
  background: #003b73;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,79,148,0.25);
}

/* Validation errors */
.login-form .text-danger {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(180,35,24,0.06);
  border: 1px solid rgba(180,35,24,0.18);
  color: #7a1c14;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 480px) {
  .login-form form {
    padding: 1.75rem 1.5rem;
  }
}
