body {
  margin: 0;
  font-family: 'Myriad Pro', Arial, sans-serif;
  background-color: #f0f1f8;
  min-height: 100vh;
  background-image: url('../img/login-bg.png');
  background-repeat: no-repeat;
  background-position: right bottom;
}

.header {
  background: #26358B;
  height: 119px;
  display: flex;
  align-items: flex-start;
}

.logo {
  height: 87px;
  margin-left: 24px;
  margin-top: 16px;
}

.container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 136px;
  padding-top: 60px;
}

.login-panel {
  background: transparent;
}

.login-panel h1 {
  color: #26358B;
  font-size: 40px;
  margin-bottom: 0;
  font-weight: 600;
}

.subtitle {
  color: #26358B;
  margin-top: 5px;
  margin-bottom: 69px;
  font-size: 24px;
  font-weight: 400;
}

.label {
  display: block;
  font-weight: 600;
  color: #26358B;
  margin-bottom: 18px;
  margin-top: 18px;
  font-size: 24px;
}

.input {
  display: block;
  height: 48px;
  border-radius: 8px;
  border: none;
  background: #fff;
  margin-bottom: 0;
  font-size: 16px;
  padding: 16px 32px;
  box-sizing: border-box;
  outline: none;
}

input[type="text"], input[type="password"] {
  color: #26358B;
}

.input::placeholder {
  color: #26358B;
  opacity: 1;
}

.login-btn {
  margin-top: 22px;
  height: 48px;
  background: #26358B;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.input:focus {
  border: 2px solid #26358B;
  background: #f9f9ff;
}

.login-btn:hover {
  background: #1e2b6d;
  color:#26358B;
  background:#fff;
  border: 2px solid #26358B;
}

.input, .login-btn {
  width: 100%;
  max-width: 422px;
}

.forgot {
  display: block;
  margin-top: 22px;
  color: #26358B;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.error {
    color: #c00;
    margin-top: 30px;
}

.bg-lines {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 600px;
  max-width: 52vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-top: 40px;
  }
  .bg-lines {
    position: absolute;
    right: -100px;
    bottom: -40px;
    max-width: 100vw;
  }
}


/* Wrapper um Input + Toggle */
.input-wrap {
  position: relative;
  display: inline-block; /* passt zu deinem .input */
  width: 100%;
  max-width: 422px; /* gleiche Max-Breite wie .input */
}

/* Erhöhe Padding des Inputs damit das Icon nicht überlappt */
.input-wrap .input {
  padding-right: 56px; /* genug Platz für das Icon */
  box-sizing: border-box;
}

/* Toggle-Button */
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  color: #26358B; /* gleiche Farbe wie Text/Buttons */
  border-radius: 6px;
}

/* Fokus-Ring für Zugänglichkeit */
.pw-toggle:focus {
  outline: 2px solid rgba(38,53,139,0.18);
  outline-offset: 2px;
}

/* kleine Hover-Animation */
.pw-toggle:hover .icon {
  transform: scale(1.05);
}

/* Icon styling */
.icon {
  width: 20px;
  height: 20px;
  transition: transform .12s ease;
}

/* Wenn sichtbar (Password lesbar), zeige das "eye-off" SVG und verstecke das andere */
.pw-toggle[aria-pressed="true"] .icon-eye { display: none; }
.pw-toggle[aria-pressed="true"] .icon-eye-off { display: inline-block; }
.pw-toggle[aria-pressed="false"] .icon-eye { display: inline-block; }
.pw-toggle[aria-pressed="false"] .icon-eye-off { display: none; }