/* ===== Reset / Bas ===== */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body.login-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #f2f5f8, #e6ebf0);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Login Card ===== */
.login-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ===== Logo ===== */
.login-logo {
  display: block;
  max-width: 287px;
  margin: 53px auto;
}

/* ===== Titel ===== */
.login-card h1 {
  text-align: center;
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
  color: #1f2933;
}

/* ===== Labels & Inputs ===== */
.login-card label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

.login-card input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.login-card input:focus {
  outline: none;
  border-color: #31b7d8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ===== Button ===== */
.login-card button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #56c7ef;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-card button:hover {
  background: #56c6ef;
}

/* ===== Error ===== */
.error {
  background: #fdecea;
  color: #b00020;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Dölj error vid start */
.hidden {
  display: none;
}

.password-wrap {
  position: relative;
  margin-bottom: 18px;
}

.password-wrap input {
  margin-bottom: 0;
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px !important;
  height: 30px;
  padding: 0 !important;
  margin: 0;
  border-radius: 8px;
  background: #fff !important;
  color: #6b7280 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: none;
}

.password-toggle:hover {
  background: #fff !important;
  color: #374151 !important;
}

.password-toggle:focus {
  outline: none;
  border-color: #31b7d8 !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}