* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* BODY – centrerad layout */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont;

  /* REN BAKGRUND (bg-auth.png = ren bakgrund) */
  background: url("/assets/bg-auth.png") center center no-repeat fixed;
  background-size: cover;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
}

/* WRAPPER */
.auth-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGGA */
.auth-logo {
  margin-bottom: 28px;
  text-align: center;
}

.auth-logo img {
  width: 260px;          /* STÖRRE LOGGA */
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.35));
}

/* KORT */
.auth-card {
  width: 100%;
  max-width: 420px;      /* STÖRRE KORT */
  background: rgba(255,255,255,0.96);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow:
    0 22px 44px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.6);
}

/* RUBRIK */
.auth-card h2 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #4b5bdc;
}

/* UNDERTEXT */
.auth-sub {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 22px;
  font-size: 15px;
  color: #555;
}

/* FÄLT */
.field {
  display: flex;
  align-items: center;
  background: #eef1ff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.field input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 15px;
}

/* SVG-IKONER */
.icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  fill: #5b6cff;
  flex-shrink: 0;
}

/* KNAPPAR */
button {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  border: none;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  margin-top: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.btn-login {
  background: linear-gradient(90deg,#4b6cff,#7b5cff);
}

.btn-register {
  background: linear-gradient(90deg,#ff5ba7,#ff7b7b);
}

/* LÄNKAR */
.link {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
}

.link a {
  color: #5b6cff;
  text-decoration: none;
}

/* FELMEDDELANDE */
.msg {
  margin-top: 12px;
  text-align: center;
  color: #e63946;
  font-size: 14px;
}
