@font-face {
  font-family: "Inter";
  src: url("/datenbank/_assets/kotel-login/fonts/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/datenbank/_assets/kotel-login/fonts/inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/datenbank/_assets/kotel-login/fonts/inter-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/datenbank/_assets/kotel-login/fonts/inter-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --kotel-navy: #071f63;
  --kotel-blue: #164eea;
  --kotel-blue-hover: #1047d7;
  --kotel-blue-light: #1e78ff;
  --login-background: #f7faff;
  --login-surface: #ffffff;
  --login-soft-blue: #eef4ff;
  --login-text-muted: #51637f;
  --login-border: #cad8f0;
  --login-error: #c43b4d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  background: #fff;
  color: var(--kotel-navy);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
input,
label {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  position: relative;
  width: min(1440px, 100%);
  height: 900px;
  overflow: clip;
  border-radius: 18px;
  background: var(--login-background);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: 1440px;
  height: 900px;
  margin: 0;
}

.brand-header {
  position: absolute;
  top: 66px;
  left: 150px;
  width: 360px;
  height: 160px;
}

.brand-logo {
  position: absolute;
  inset: 0 auto auto 40px;
  display: block;
  width: 280px;
  height: 112px;
  object-fit: contain;
}

.brand-divider {
  position: absolute;
  top: 117px;
  left: 16px;
  width: 302px;
  height: 1px;
  background: var(--login-border);
}

.product-name {
  position: absolute;
  top: 143px;
  left: 16px;
  color: var(--kotel-navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.2px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-grid {
  display: contents;
}

.login-card {
  position: absolute;
  top: 276px;
  left: 166px;
  width: 470px;
  height: 482px;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: var(--login-surface);
  box-shadow: 0 14px 32px rgba(7, 31, 99, 0.13);
}

.eyebrow,
.login-card h1,
.login-intro {
  position: absolute;
  left: 46px;
  margin: 0;
  white-space: nowrap;
}

.eyebrow {
  top: 44px;
  color: var(--kotel-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 15px;
  text-transform: uppercase;
}

.login-card h1 {
  top: 69px;
  color: var(--kotel-navy);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 35px;
}

.login-intro {
  top: 113px;
  color: var(--login-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.login-card form {
  position: absolute;
  top: 159px;
  left: 46px;
  width: 378px;
}

.field-group {
  position: relative;
  width: 100%;
  height: 88px;
  margin: 0;
}

.field-group > label {
  display: block;
  height: 15px;
  margin: 0 0 6px;
  color: var(--kotel-navy);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}

.field-group input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--login-border);
  border-radius: 10px;
  outline: 0;
  background: var(--login-background);
  color: var(--kotel-navy);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field-group input::placeholder {
  color: var(--login-text-muted);
  opacity: 1;
}

.field-group input:hover {
  border-color: #9fb5da;
}

.field-group input:focus {
  border-color: var(--kotel-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 78, 234, 0.14);
}

.field-group input[aria-invalid="true"] {
  border-color: var(--login-error);
  background: #fffafb;
}

.field-group input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(196, 59, 77, 0.12);
}

.password-control {
  position: relative;
  width: 100%;
  height: 54px;
}

.password-control input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #627495;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, background 150ms ease, color 150ms ease;
}

.password-control:hover .password-toggle,
.password-control:focus-within .password-toggle,
.password-toggle:focus-visible {
  opacity: 1;
}

.password-toggle:hover {
  background: var(--login-soft-blue);
  color: var(--kotel-blue);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(30, 120, 255, 0.38);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.field-error {
  position: absolute;
  top: 75px;
  left: 2px;
  z-index: 2;
  max-width: 374px;
  margin: 0;
  overflow: hidden;
  color: var(--login-error);
  font-size: 9px;
  font-weight: 500;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-options {
  height: 16px;
  display: flex;
  align-items: flex-start;
  margin: 0 0 23px;
}

.checkbox-control {
  height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--login-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  cursor: pointer;
}

.checkbox-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.checkbox-mark {
  width: 16px;
  height: 16px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1.3px solid var(--login-text-muted);
  border-radius: 4px;
  background: #fff;
  margin-top: 1.75px;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.checkbox-mark svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  opacity: 0;
}

.checkbox-control input:checked + .checkbox-mark {
  border-color: var(--kotel-blue);
  background: var(--kotel-blue);
}

.checkbox-control input:checked + .checkbox-mark svg {
  opacity: 1;
}

.checkbox-control input:focus-visible + .checkbox-mark {
  box-shadow: 0 0 0 3px rgba(30, 120, 255, 0.32);
}

.login-submit {
  width: 100%;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--kotel-blue);
  box-shadow: 0 6px 12px rgba(22, 78, 234, 0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.login-submit:hover:not(:disabled) {
  background: var(--kotel-blue-hover);
  box-shadow: 0 8px 16px rgba(22, 78, 234, 0.28);
  transform: translateY(-1px);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit:focus-visible {
  outline: 3px solid var(--kotel-blue-light);
  outline-offset: 3px;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.86;
}

.button-loading {
  display: none;
  align-items: center;
  gap: 9px;
}

.login-submit.is-loading .button-label {
  display: none;
}

.login-submit.is-loading .button-loading {
  display: flex;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-message {
  position: absolute;
  top: 329px;
  left: 0;
  width: 378px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--login-text-muted);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  visibility: hidden;
}

.form-message:not(:empty) {
  visibility: visible;
  box-shadow: 0 4px 12px rgba(7, 31, 99, 0.1);
}

.form-message.is-error {
  color: var(--login-error);
}

.form-message.is-info {
  color: var(--kotel-blue);
}

.card-footer {
  height: 16px;
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 19px;
  white-space: nowrap;
}

.text-link,
.support-link {
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kotel-blue);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  cursor: pointer;
}

.support-link {
  color: var(--login-text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  transform: translateY(1px);
}

.text-link:hover,
.support-link:hover {
  color: var(--kotel-blue-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:focus-visible,
.support-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(30, 120, 255, 0.38);
  outline-offset: 2px;
}

.footer-separator {
  display: none;
}

.portal-teaser {
  position: absolute;
  top: 214px;
  left: 808px;
  width: 396px;
  height: 493px;
}

.portal-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 174px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--login-soft-blue);
  color: var(--kotel-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-teaser h2 {
  position: absolute;
  top: 56px;
  left: 0;
  width: 277px;
  margin: 0;
  color: var(--kotel-navy);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 55px;
  white-space: nowrap;
}

.portal-intro {
  position: absolute;
  top: 191px;
  left: 0;
  width: 396px;
  margin: 0;
  color: var(--login-text-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
  white-space: nowrap;
}

.feature-list {
  position: absolute;
  top: 293px;
  left: 0;
  width: 396px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  width: 396px;
  height: 78px;
  padding: 0;
}

.feature-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 65px;
  left: 0;
  width: 396px;
  height: 1px;
  background: rgba(202, 216, 240, 0.65);
}

.feature-number {
  position: absolute;
  top: 3px;
  left: 0;
  color: var(--kotel-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 15px;
}

.feature-list li > div {
  position: absolute;
  top: 0;
  left: 50px;
}

.feature-list h3 {
  width: max-content;
  margin: 0;
  color: var(--kotel-navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 21px;
}

.feature-list p {
  width: max-content;
  margin: 6px 0 0;
  color: var(--login-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.ambient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.ambient-one {
  top: 78px;
  left: 870px;
  width: 760px;
  height: 760px;
  background: url("/datenbank/_assets/kotel-login/kotel-blue-aura.svg") center / 100% 100% no-repeat;
}

.ambient-two {
  top: -164.411px;
  left: 982px;
  width: 678.823px;
  height: 678.823px;
  display: grid;
  place-items: center;
}

.ambient-two::before {
  content: "";
  width: 480px;
  height: 480px;
  border: 1px solid rgba(22, 78, 234, 0.12);
  border-radius: 72px;
  background: rgba(22, 78, 234, 0.05);
  transform: rotate(-45deg);
}

.ambient-three,
.page-footer {
  display: none;
}

@media (max-width: 1439px) and (min-width: 1024px) {
  .page-shell {
    transform: scale(calc(100vw / 1440));
    transform-origin: top left;
  }

  .login-page {
    height: calc(900px * (100vw / 1440));
  }
}

@media (max-width: 1023px) {
  .login-page {
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    border-radius: 0;
  }

  .page-shell {
    width: min(720px, 100%);
    height: auto;
    min-height: 1450px;
    margin: 0 auto;
    padding: 40px 24px;
  }

  .brand-header {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto;
  }

  .content-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 74px;
    margin-top: 50px;
  }

  .login-card,
  .portal-teaser {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
  }

  .ambient-one {
    top: 660px;
    left: 46%;
  }

  .ambient-two {
    top: 720px;
    left: 65%;
  }
}

@media (max-width: 767px) {
  .page-shell {
    min-height: 100vh;
    padding: 28px 24px 24px;
  }

  .brand-header {
    width: 100%;
    height: 143px;
  }

  .brand-logo {
    left: 50%;
    width: min(280px, 100%);
    height: 112px;
    transform: translateX(-50%);
  }

  .brand-divider {
    top: 116px;
    left: 50%;
    width: min(302px, 86%);
    transform: translateX(-50%);
  }

  .product-name {
    top: 130px;
    left: 50%;
    font-size: 10px;
    letter-spacing: 2.4px;
    text-align: center;
    transform: translateX(-50%);
  }

  .content-grid {
    display: block;
    margin-top: 28px;
  }

  .login-card {
    width: 100%;
    height: auto;
    min-height: 520px;
    padding: 34px 22px 28px;
    border-radius: 18px;
  }

  .eyebrow,
  .login-card h1,
  .login-intro {
    position: static;
    white-space: normal;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .login-card h1 {
    font-size: 27px;
    line-height: 33px;
  }

  .login-intro {
    margin-top: 7px;
    line-height: 22px;
  }

  .login-card form {
    position: static;
    width: 100%;
    margin-top: 27px;
  }

  .field-group {
    height: 92px;
  }

  .form-options {
    margin-top: 2px;
    margin-bottom: 25px;
  }

  .card-footer {
    height: auto;
    flex-direction: column;
    gap: 10px;
    margin-top: 19px;
  }

  .text-link,
  .support-link {
    min-height: 28px;
    justify-content: center;
  }

  .form-message {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .portal-teaser,
  .ambient {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .login-card {
    padding-right: 19px;
    padding-left: 19px;
  }

  .support-link {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* Legacy ITM page integration */
body.kotel-login-body {
  width: 100%;
  min-width: 320px;
  align-items: flex-start;
  overflow-x: hidden;
}

body.kotel-login-body #page {
  width: 100%;
  min-height: 100vh;
}

body.kotel-login-body .login-page {
  margin: 0 auto;
}

.login-card.login-card-error {
  min-height: 300px;
}

.login-error-message {
  margin: 28px 0 24px;
  padding: 16px 18px;
  border: 1px solid #f0bbc3;
  border-radius: 10px;
  background: #fff4f6;
  color: #9f2435;
  font-size: 14px;
  line-height: 1.55;
}

.login-retry {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--kotel-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.login-retry:hover,
.login-retry:focus-visible {
  background: var(--kotel-blue-hover);
}

.password-toggle {
  background: transparent;
}
