.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f9f9fb;
}

.login-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 36px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
  width: 340px;
  justify-content: center;
}

.login-logo {
  width: 48px;
  height: 48px;
  margin-right: 18px;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #181920;
  margin: 0;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(60,60,80,0.09);
  padding: 32px 32px 24px 32px;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.login-field label {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.95rem;
}

.login-field input {
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1.05rem;
  background: #f5f6fa;
}

.login-error {
  color: #d32f2f;
  margin-bottom: 12px;
  font-weight: 500;
}

button[type="submit"] {
  padding: 10px 0;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 7px;
  background: #004bb8;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.2s;
}

button[type="submit"]:disabled {
  background: #a4a8b4;
  cursor: not-allowed;
}
/* HEADER */
.app-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  height: 72px;
  box-sizing: border-box;
}

.header-logo {
  width: 60px;
  height: 60px;
  margin-right: 16px;
}

.header-title {
  font-size: 2rem;
  color: #040404;
  margin: 0;
}

/* TILBAKE-KNAPP */
.back-link {
  margin-right: 12px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
}
.back-link:hover {
  text-decoration: underline;
}

/* KORT-GALLERI */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* Horisontal sentrering */
  align-items: center;       /* Vertikal sentrering */
  gap: 16px;
  padding: 20px;
  min-height: calc(100vh - 72px);
}


.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card h4 {
  margin-top: 12px;
  text-transform: capitalize;
}