:root {
  --sv-orange: #fd550a;
  --sv-orange-ink: #a93100;
  --sv-orange-soft: #fff2ec;
  --sv-button-start: #ff6a1a;
  --sv-button-end: #e94200;
  --sv-navy: #111536;
  --sv-body: #565873;
  --sv-muted: #6a6c80;
  --sv-line: #e8e6ef;
  --sv-field: #fbfbfd;
  --sv-page: #eef1f5;
  --sv-surface: #ffffff;
  --sv-danger: #7a1d2e;
  --sv-danger-soft: #fdecee;
  --sv-danger-line: #f3c5cd;
  --sv-success: #0f5c4e;
  --sv-success-soft: #e4f5ef;
  --sv-success-line: #b7e0d2;
  --sv-shadow-card: 0 28px 70px -42px rgb(17 21 54 / 30%);
  --sv-shadow-button: 0 12px 24px -14px #d33a00;
  --sv-font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html.login-pf,
.login-pf body {
  min-height: 100%;
  background: var(--sv-page);
}

.login-pf body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  color: var(--sv-navy);
  font-family: var(--sv-font);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.login-pf a {
  color: var(--sv-orange-ink);
  font-weight: 650;
  text-decoration: none;
}

.login-pf a:hover {
  color: var(--sv-orange-ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.login-pf a:focus-visible,
.login-pf button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sv-orange) 45%, transparent);
  outline-offset: 3px;
}

.login-pf input:focus-visible {
  outline: 0;
}

.pf-v5-c-login {
  width: min(32.5rem, 100%);
  min-height: 0;
  padding: 0;
  background: transparent;
}

.pf-v5-c-login__container {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border: 0;
  border-radius: 1.75rem;
  background: var(--sv-surface);
  box-shadow: var(--sv-shadow-card);
}

.pf-v5-c-login__container::before,
.pf-v5-c-login__container::after {
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -7rem;
  left: -18%;
  height: 14rem;
  pointer-events: none;
  content: "";
}

.pf-v5-c-login__container::before {
  background:
    radial-gradient(ellipse 55% 90% at 12% 80%, rgb(255 179 135 / 58%), transparent 68%),
    radial-gradient(ellipse 60% 100% at 88% 86%, rgb(255 201 164 / 52%), transparent 70%),
    radial-gradient(ellipse 45% 80% at 48% 100%, rgb(255 215 188 / 42%), transparent 72%);
  filter: blur(1.75rem);
}

.pf-v5-c-login__container::after {
  background: linear-gradient(180deg, transparent, rgb(255 226 206 / 24%));
}

#kc-header {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.75rem 2.25rem 0;
}

#kc-header-wrapper.pf-v5-c-brand {
  width: max-content;
  color: var(--sv-navy);
  font-size: 0;
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 1;
  text-transform: none;
}

#kc-header-wrapper::before,
#kc-header-wrapper::after {
  font-size: 1.35rem;
  text-transform: none;
}

#kc-header-wrapper::before {
  color: var(--sv-navy);
  content: "souveraen";
}

#kc-header-wrapper::after {
  color: var(--sv-orange);
  content: ".ai";
}

.pf-v5-c-login__main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 2rem 2.25rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pf-v5-c-login__main-header {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
}

.pf-v5-c-login__main-body,
.pf-v5-c-login__main-footer {
  padding: 0;
}

#kc-page-title,
.pf-v5-c-title.pf-m-3xl {
  width: auto;
  max-width: 10ch;
  margin: 0 0 0.75rem;
  color: var(--sv-navy);
  font-family: var(--sv-font);
  font-size: clamp(2.05rem, 7vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
  white-space: normal;
}

#kc-page-title::after {
  display: block;
  width: min(28rem, calc(100vw - 4.5rem));
  max-width: 38ch;
  margin-top: 0.75rem;
  color: var(--sv-muted);
  content: "Melden Sie sich an, um mit souveraen.ai weiterzuarbeiten.";
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}

html[lang="en"] #kc-page-title::after {
  content: "Sign in to continue working with souveraen.ai.";
}

#kc-content,
#kc-content-wrapper,
#kc-form,
#kc-form-wrapper {
  width: 100%;
}

.pf-v5-c-form {
  --pf-v5-c-form--GridGap: 1rem;
  font-family: var(--sv-font);
}

.pf-v5-c-form__group {
  margin: 0 0 1rem;
}

.pf-v5-c-form__label,
.pf-v5-c-form__label-text,
.pf-v5-c-check__label {
  color: var(--sv-muted);
  font-family: var(--sv-font);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pf-v5-c-form-control {
  display: flex;
  align-items: center;
  min-height: 3.125rem;
  padding: 0;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-field);
  box-shadow: none;
  color: var(--sv-navy);
  font-family: var(--sv-font);
  font-size: 0.9375rem;
}

.pf-v5-c-form-control > input,
.pf-v5-c-form-control > select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.pf-v5-c-form-control::before,
.pf-v5-c-form-control::after {
  border: 0;
}

.pf-v5-c-form-control:hover {
  border-color: var(--sv-orange);
}

.pf-v5-c-form-control:focus-within {
  border-color: var(--sv-orange);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-orange) 18%, transparent);
}

.pf-v5-c-input-group {
  overflow: hidden;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-field);
}

.pf-v5-c-input-group:focus-within {
  border-color: var(--sv-orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-orange) 18%, transparent);
}

.pf-v5-c-input-group .pf-v5-c-form-control {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pf-v5-c-input-group .pf-v5-c-button.pf-m-control {
  width: 3.125rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sv-muted);
}

.pf-v5-c-input-group .pf-v5-c-button.pf-m-control:hover {
  background: var(--sv-orange-soft);
  color: var(--sv-orange-ink);
}

#kc-form-options,
#kc-form-options + div {
  font-size: 0.875rem;
}

#kc-form-buttons {
  margin-top: 1.125rem;
}

.pf-v5-c-button.pf-m-primary,
input.pf-v5-c-button.pf-m-primary {
  min-height: 3.125rem;
  border: 1px solid var(--sv-button-end);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sv-button-start), var(--sv-button-end));
  box-shadow: var(--sv-shadow-button);
  color: var(--sv-surface);
  font-family: var(--sv-font);
  font-size: 0.9375rem;
  font-weight: 700;
}

.pf-v5-c-button.pf-m-primary:hover,
input.pf-v5-c-button.pf-m-primary:hover {
  border-color: var(--sv-orange-ink);
  background: linear-gradient(135deg, #f5580f, #d63800);
}

.pf-v5-c-button.pf-m-secondary,
.pf-v5-c-button.pf-m-tertiary {
  min-height: 3rem;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-surface);
  color: var(--sv-navy);
  font-family: var(--sv-font);
  font-weight: 650;
}

.pf-v5-c-button.pf-m-secondary:hover,
.pf-v5-c-button.pf-m-tertiary:hover {
  border-color: var(--sv-orange);
  background: var(--sv-orange-soft);
}

.pf-v5-c-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--sv-danger-line);
  border-radius: 0.75rem;
  background: var(--sv-danger-soft);
  box-shadow: none;
  color: var(--sv-danger);
  font-size: 0.875rem;
  line-height: 1.45;
}

.pf-v5-c-alert.pf-m-success {
  border-color: var(--sv-success-line);
  background: var(--sv-success-soft);
  color: var(--sv-success);
}

.pf-v5-c-alert__icon {
  color: currentColor;
}

.kc-feedback-text,
.pf-v5-c-helper-text__item-text.pf-m-error {
  margin-top: 0.5rem;
  color: var(--sv-danger);
  font-size: 0.8125rem;
}

.pf-v5-c-login__main-header-utilities {
  position: absolute;
  top: -4.85rem;
  right: 0;
  width: 11rem;
}

#login-select-toggle {
  width: 100%;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-surface);
  color: var(--sv-muted);
  font-family: var(--sv-font);
  font-size: 0.8125rem;
  font-weight: 650;
}

.pf-v5-c-login__main-header-utilities > .pf-v5-c-form-control {
  position: relative;
  width: 100%;
  min-height: 2.25rem;
  border: 0;
  background: transparent;
}

.souveraen-login-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0 0.5rem;
  color: var(--sv-muted);
  font-size: 0.8125rem;
}

#kc-social-providers hr {
  border: 0;
  border-top: 1px solid var(--sv-line);
}

#kc-social-providers h2,
#kc-info {
  color: var(--sv-muted);
  font-size: 0.875rem;
}

.pf-v5-c-data-list,
.pf-v5-c-panel,
.pf-v5-c-tile {
  overflow: hidden;
  border: 1px solid var(--sv-line);
  border-radius: 0.75rem;
  background: var(--sv-surface);
  box-shadow: none;
}

@media (max-width: 36rem) {
  .login-pf body {
    align-items: start;
    padding: 0;
    background: var(--sv-surface);
  }

  .pf-v5-c-login,
  .pf-v5-c-login__container {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  #kc-header {
    padding: 1.5rem 1.35rem 0;
  }

  .pf-v5-c-login__main {
    padding: 2rem 1.35rem 1rem;
  }

  #kc-page-title::after {
    width: calc(100vw - 2.7rem);
  }

  .pf-v5-c-login__main-header-utilities {
    top: -4.6rem;
    width: 8.75rem;
  }

  .souveraen-login-foot {
    padding-bottom: 1.5rem;
  }
}

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

  .pf-v5-c-login__container::before {
    filter: none;
  }
}
