:root {
  --navy: #0c2d49;
  --blue: #1f65a5;
  --blue-dark: #174f83;
  --text: #102b43;
  --muted: #74879a;
  --border: #d4e0e9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(244, 250, 254, 0.92) 38%,
      rgba(226, 240, 249, 0.92) 72%,
      rgba(211, 231, 244, 0.95) 100%
    );
}

/* --------------------------------------------------
   GESAMTE LOGIN-SEITE
-------------------------------------------------- */

.login-page {
  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 48px 24px;

  position: relative;
  overflow: hidden;
}

/* Dezente Hintergrundformen */

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-page::before {
  width: 700px;
  height: 700px;
  left: -360px;
  bottom: -390px;

  background:
    rgba(179, 211, 232, 0.22);

  transform: rotate(25deg);
}

.login-page::after {
  width: 820px;
  height: 820px;
  right: -480px;
  top: -500px;

  background:
    rgba(255, 255, 255, 0.42);
}

/* --------------------------------------------------
   LINKER BEREICH WIRD ZUR GANZEN SEITE
-------------------------------------------------- */

.login-panel {
  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 48px 24px;

  position: relative;
  z-index: 2;

  background: transparent;
}

/* --------------------------------------------------
   LOGIN-KARTE
-------------------------------------------------- */

.login-card {
  width: 100%;
  max-width: 710px;

  background: rgba(255, 255, 255, 0.97);

  border:
    1px solid rgba(13, 48, 76, 0.08);

  border-radius: 24px;

  padding:
    46px 64px 40px;

  box-shadow:
    0 28px 70px rgba(24, 72, 108, 0.15),
    0 5px 18px rgba(24, 72, 108, 0.06);
}

/* --------------------------------------------------
   LOGO
-------------------------------------------------- */

.logo-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 28px;
}

.logo-wrap img {
  display: inline-block;

  width: 310px;
  max-width: 72%;

  height: auto;
}

/* --------------------------------------------------
   TRENNLINIE
-------------------------------------------------- */

.card-divider {
  width: 100%;
  height: 1px;

  background: var(--border);

  margin:
    0 0 30px;
}

/* --------------------------------------------------
   ÜBERSCHRIFT
-------------------------------------------------- */

.login-card h1 {
  margin: 0;

  text-align: center;

  color: var(--navy);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 48px;
  line-height: 1.1;

  font-weight: 700;

  letter-spacing: -0.025em;
}

.login-subtitle {
  margin:
    8px 0 38px;

  text-align: center;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.4;
}

/* --------------------------------------------------
   FORMULAR
-------------------------------------------------- */

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;

  margin-bottom: 9px;

  color: var(--text);

  font-size: 16px;
  font-weight: 700;
}

.input-wrap {
  width: 100%;
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 58px;

  padding:
    0 20px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  outline: none;

  background: #ffffff;

  color: var(--text);

  font-family: inherit;
  font-size: 16px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.input-wrap input::placeholder {
  color: #9aabba;
}

.input-wrap input:hover {
  border-color: #b9cad7;
}

.input-wrap input:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 4px rgba(31, 101, 165, 0.10);
}

/* Passwortfeld bekommt Platz für Anzeigen */

#password {
  padding-right: 100px;
}

/* --------------------------------------------------
   PASSWORT ANZEIGEN
-------------------------------------------------- */

.password-toggle {
  position: absolute;

  top: 50%;
  right: 12px;

  transform: translateY(-50%);

  padding: 9px 10px;

  border: 0;
  background: transparent;

  color: #637a90;

  font-family: inherit;
  font-size: 14px;

  cursor: pointer;
}

.password-toggle:hover {
  color: var(--blue);
}

/* --------------------------------------------------
   PASSWORT VERGESSEN
-------------------------------------------------- */

.password-row {
  display: flex;
  justify-content: flex-end;

  margin:
    -5px 0 24px;
}

.password-row a {
  color: #075ca7;

  text-decoration: none;

  font-size: 15px;
  font-weight: 700;
}

.password-row a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   ANMELDEN
-------------------------------------------------- */

.login-button {
  width: 100%;
  height: 58px;

  border: 0;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #2671b7 0%,
      #19558d 100%
    );

  color: #ffffff;

  font-family: inherit;
  font-size: 17px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 10px 24px rgba(31, 101, 165, 0.20);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.login-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 14px 30px rgba(31, 101, 165, 0.25);

  filter: brightness(1.03);
}

.login-button:active {
  transform: translateY(0);
}

/* --------------------------------------------------
   FEHLERMELDUNG
-------------------------------------------------- */

.error-message {
  margin:
    -12px 0 24px;

  padding:
    13px 16px;

  border:
    1px solid #efcaca;

  border-radius: 10px;

  background: #fff2f2;

  color: #982f2f;

  font-size: 14px;
  line-height: 1.45;
}

/* --------------------------------------------------
   INTERNER HINWEIS
-------------------------------------------------- */

.internal-note {
  margin-top: 34px;

  padding-top: 28px;

  border-top:
    1px solid var(--border);

  text-align: center;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.55;
}

.internal-note strong {
  display: block;

  margin-bottom: 4px;

  color: var(--navy);

  font-size: 16px;
  font-weight: 700;
}

/* --------------------------------------------------
   RECHTE HÄLFTE KOMPLETT AUSBLENDEN
-------------------------------------------------- */

.visual-panel {
  display: none !important;
}

/* --------------------------------------------------
   TABLET
-------------------------------------------------- */

@media (max-width: 800px) {

  .login-page,
  .login-panel {
    padding:
      28px 18px;
  }

  .login-card {
    max-width: 620px;

    padding:
      40px 42px 34px;
  }

  .login-card h1 {
    font-size: 42px;
  }

  .logo-wrap img {
    width: 285px;
  }
}

/* --------------------------------------------------
   HANDY
-------------------------------------------------- */

@media (max-width: 520px) {

  .login-page,
  .login-panel {
    min-height: 100vh;

    padding:
      16px;
  }

  .login-card {
    padding:
      30px 22px 26px;

    border-radius: 18px;
  }

  .logo-wrap {
    margin-bottom: 22px;
  }

  .logo-wrap img {
    width: 245px;
    max-width: 82%;
  }

  .card-divider {
    margin-bottom: 24px;
  }

  .login-card h1 {
    font-size: 34px;
  }

  .login-subtitle {
    margin:
      7px 0 30px;

    font-size: 16px;
  }

  .input-wrap input {
    height: 56px;
  }

  .login-button {
    height: 56px;
  }

  .internal-note {
    margin-top: 28px;
    padding-top: 24px;
  }
}
