/* RisingLiberty Auth — Login links / Register rechts, animierter Swap */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --rl-ink: #1a1408;
  --rl-muted: #7a6f5c;
  --rl-line: #e0d6c4;
  --rl-panel: #ffffff;
  --rl-shadow: 0 22px 50px rgba(26, 20, 8, 0.18);
  --rl-radius-panel: 0;
  --rl-radius-pill: 999px;
  --rl-font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --rl-hero-from: #7d7668;
  --rl-hero-mid: #6b7280;
  --rl-hero-to: #4b5563;
  --rl-accent: #e2b84a;
  --rl-btn: #e2b84a;
  --rl-btn-hover: #b8922e;
  --rl-btn-ready: #2f9e6b;
  --rl-btn-ready-hover: #247a53;
  --rl-flame: #e2583e;
  --rl-green: #a8c3a0;
  --rl-seam: 42.5%;
  --rl-swap-ms: 480ms;
}

body.rl-mode-login {
  --rl-hero-from: #8b8474;
  --rl-hero-mid: #6b7280;
  --rl-hero-to: #4b5563;
  --rl-btn: #e2b84a;
  --rl-btn-hover: #b8922e;
  --rl-accent: #e2b84a;
  --rl-btn-ready: #e2b84a;
  --rl-btn-ready-hover: #b8922e;
  --rl-seam: 42.5%;
}

body.rl-mode-register {
  --rl-hero-from: #e2b84a;
  --rl-hero-mid: #b8860b;
  --rl-hero-to: #8a6a0a;
  --rl-btn: #e2b84a;
  --rl-btn-hover: #b8922e;
  --rl-accent: #b8922e;
  --rl-btn-ready: #e2b84a;
  --rl-btn-ready-hover: #9a7a18;
  --rl-seam: 57.5%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.rl-html {
  height: 100%;
  overflow: hidden;
}

html.rl-html,
body.rl-body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--rl-font);
  color: var(--rl-ink);
  background: #e8e0d0;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.rl-shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  grid-template-areas: "hero form";
  overflow: hidden;
  background: #e8e0d0;
  transition: none;
}

a {
  color: var(--rl-accent);
  text-decoration: none;
}

a:hover {
  color: var(--rl-btn-hover);
  text-decoration: underline;
}

.rl-visually-hidden,
.subtitle,
span.required,
.pf-c-form__label-required,
.rl-form-header .subtitle,
#kc-info,
.rl-signup-info,
#kc-registration-container {
  display: none !important;
}

body.rl-mode-register .rl-shell {
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
  grid-template-areas: "form hero";
}

.rl-hero {
  grid-area: hero;
  position: relative;
  height: 100%;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(160deg, var(--rl-hero-from) 0%, var(--rl-hero-mid) 48%, var(--rl-hero-to) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  isolation: isolate;
  z-index: 1;
}

body.rl-mode-login .rl-hero,
body.rl-mode-register .rl-hero {
  padding: 0;
}

.rl-hero__glow {
  position: absolute;
  inset: 18% 12% 22%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  animation: rl-pulse 5.5s ease-in-out infinite;
}

.rl-hero__link {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: min(56%, 300px);
  text-decoration: none;
  line-height: 0;
  transform: translate(-50%, -50%);
}

body.rl-mode-login .rl-hero__link {
  left: 46%;
}

body.rl-mode-register .rl-hero__link {
  left: 54%;
}

.rl-hero__link:hover {
  text-decoration: none;
}

.rl-hero__logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 28px rgba(26, 20, 8, 0.32));
}

.rl-hero__link:hover .rl-hero__logo {
  transform: scale(1.03);
  animation: none;
}

.rl-hero__brand {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-transform: uppercase;
  pointer-events: none;
}

body.rl-mode-register .rl-hero__brand {
  left: auto;
  right: 1.5rem;
}

/* Mode switch — vertical pill in the seam */
.rl-mode-tabs {
  position: absolute;
  top: 50%;
  left: var(--rl-seam);
  transform: translate(-50%, -50%);
  z-index: 96;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.rl-mode-tabs__track {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.rl-mode-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.6rem;
  padding: 0.72rem 1rem;
  border-radius: var(--rl-radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rl-mode-tabs__btn.is-active {
  background: var(--rl-btn);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--rl-btn) 40%, transparent);
}

a.rl-mode-tabs__btn:not(.is-active) {
  background: transparent;
  color: var(--rl-ink);
}

a.rl-mode-tabs__btn:not(.is-active):hover {
  background: color-mix(in srgb, var(--rl-btn) 14%, #fff);
  color: var(--rl-ink);
  transform: scale(1.03);
}

.rl-mode-tabs__btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  color: var(--rl-muted);
}

/* Form panel */
.rl-form-panel {
  grid-area: form;
  background: #e8e0d0;
  box-shadow: var(--rl-shadow);
  margin: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
  z-index: 2;
  overflow-y: auto;
}

body.rl-mode-register .rl-form-panel {
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4.5rem);
}

body.rl-mode-login .rl-form-panel {
  border-radius: var(--rl-radius-panel) 0 0 var(--rl-radius-panel);
}

body.rl-mode-register .rl-form-panel {
  border-radius: 0 var(--rl-radius-panel) var(--rl-radius-panel) 0;
}

.rl-form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

#kc-page-title {
  margin: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.rl-locale,
body.rl-mode-register .rl-locale {
  position: fixed;
  top: 1.15rem;
  right: 1.35rem;
  left: auto;
  z-index: 200;
  transform: none;
}

.rl-locale__dropdown > button {
  border: 1px solid var(--rl-line);
  background: #fff;
  border-radius: var(--rl-radius-pill);
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rl-ink);
  cursor: pointer;
}

.rl-locale__menu {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--rl-line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(26, 20, 8, 0.12);
  min-width: 8rem;
}

.rl-locale__item {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  color: var(--rl-ink);
  text-decoration: none;
  font-size: 0.85rem;
}

.rl-locale__item:hover {
  background: color-mix(in srgb, var(--rl-accent) 12%, #fff);
  text-decoration: none;
}

.rl-alert {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  margin: 0 auto 1.25rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
  max-width: 28rem;
}

.alert-error.rl-alert,
.pf-m-danger.rl-alert {
  background: color-mix(in srgb, var(--rl-flame) 12%, #fff);
  border-color: color-mix(in srgb, var(--rl-flame) 35%, #fff);
  color: #8a2e1d;
}

.alert-success.rl-alert,
.pf-m-success.rl-alert {
  background: color-mix(in srgb, var(--rl-green) 28%, #fff);
  border-color: color-mix(in srgb, var(--rl-green) 55%, #fff);
}

.alert-warning.rl-alert,
.pf-m-warning.rl-alert,
.alert-info.rl-alert,
.pf-m-info.rl-alert {
  background: color-mix(in srgb, var(--rl-accent) 10%, #fff);
  border-color: color-mix(in srgb, var(--rl-accent) 28%, #fff);
}

#kc-form,
#kc-form-wrapper,
#kc-content,
#kc-content-wrapper {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

#kc-content,
#kc-content-wrapper {
  position: relative;
}

.rl-back,
body.rl-mode-register .rl-back,
body.rl-push-exit .rl-back,
body.rl-push-enter .rl-back {
  position: fixed !important;
  top: 1.15rem !important;
  left: 1.35rem !important;
  right: auto !important;
  z-index: 200 !important;
  transform: none !important;
  width: auto;
  height: auto;
  min-width: 2.55rem;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  color: var(--rl-ink) !important;
  border: 1px solid var(--rl-line);
  box-shadow: 0 8px 20px rgba(26, 20, 8, 0.12);
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rl-back svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.rl-back:hover {
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 12px 24px rgba(26, 20, 8, 0.16);
  background: #fff;
  color: var(--rl-ink) !important;
  text-decoration: none !important;
}

#kc-form-login,
#kc-register-form,
#kc-reset-password-form {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #8fa3b8;
  border-radius: 1.25rem;
  padding: 1.85rem 1.85rem 1.5rem;
  box-shadow: 0 18px 40px rgba(26, 20, 8, 0.16);
  position: relative;
}

body.rl-mode-register #kc-register-form {
  padding: 1.7rem 1.8rem 1.35rem;
}

.rl-field,
#kc-register-form .form-group,
#kc-register-form .rl-field {
  margin-bottom: 0.75rem;
  position: relative;
}

body.rl-mode-register #kc-register-form .form-group,
body.rl-mode-register #kc-register-form .rl-field {
  margin-bottom: 0.7rem;
}

.rl-field__label,
#kc-register-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d4f63;
  margin-bottom: 0.45rem;
}

body.rl-mode-register #kc-register-form label {
  margin-bottom: 0.18rem;
  font-size: 0.72rem;
}

.rl-field__with-icon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--rl-line);
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.35rem 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rl-field__with-icon:focus-within {
  border-color: var(--rl-accent);
  box-shadow: 0 2px 0 var(--rl-accent);
}

.rl-field__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: var(--rl-ink);
  opacity: 0.85;
}

.rl-field__input,
#kc-register-form input[type="text"],
#kc-register-form input[type="email"],
#kc-register-form input[type="password"],
#kc-register-form input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]) {
  width: 100%;
  border: 1px solid #b7c4d2;
  border-radius: 0.65rem;
  outline: none;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rl-ink);
  padding: 0.55rem 0.75rem;
}

.rl-field__with-icon .rl-field__input {
  border-bottom: 0;
  padding: 0.35rem 0;
}

body.rl-mode-register #kc-register-form input[type="text"],
body.rl-mode-register #kc-register-form input[type="email"],
body.rl-mode-register #kc-register-form input[type="password"],
body.rl-mode-register #kc-register-form input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]) {
  padding: 0.62rem 0.85rem;
  font-size: 0.95rem;
}

.rl-field__password,
#kc-register-form .rl-field__password,
#kc-register-form .pf-c-input-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  border: 1px solid var(--rl-line);
  border-radius: 0.7rem;
  background: #fff;
  padding: 0 0.35rem 0 0;
}

#kc-register-form .pf-c-input-group input,
#kc-register-form .rl-field__password input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rl-field__toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--rl-muted);
  line-height: 1;
}

.rl-field__toggle .rl-icon-eye,
.rl-field__toggle .rl-icon-eye-off {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rl-field__toggle .rl-icon-eye-off {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-7 0-11-7-11-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 7 11 7a18.5 18.5 0 0 1-2.16 3.19M1 1l22 22'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-7 0-11-7-11-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 7 11 7a18.5 18.5 0 0 1-2.16 3.19M1 1l22 22'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rl-field__error {
  display: block;
  margin-top: 0.45rem;
  color: var(--rl-flame);
  font-size: 0.82rem;
}

.rl-remember {
  max-width: 28rem;
  margin: 0 auto 0.75rem;
}

.rl-remember .checkbox label {
  font-size: 0.88rem;
  color: var(--rl-muted);
}

.rl-form-row,
.rl-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem auto 0;
  max-width: 28rem;
  flex-wrap: wrap;
}

#kc-register-form .rl-form-actions {
  justify-content: stretch;
  margin-top: 0.7rem;
  margin-bottom: 0;
}

#kc-register-form #kc-form-buttons,
#kc-register-form .rl-btn--submit {
  width: 100%;
}

.rl-forgot a {
  color: var(--rl-accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.rl-btn,
#kc-form-buttons input[type="submit"],
#kc-form-buttons button[type="submit"] {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.95rem;
  padding: 0.95rem 1.85rem;
  min-width: 9.5rem;
  transition:
    transform 0.15s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease;
}

.rl-btn--primary,
#kc-form-buttons input[type="submit"],
#kc-form-buttons button[type="submit"] {
  background: var(--rl-btn);
  color: #fff;
  opacity: 1;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--rl-btn) 42%, transparent);
  border: 2px solid color-mix(in srgb, var(--rl-btn-hover) 70%, #000);
}

.rl-btn--submit.is-pending,
#kc-form-buttons input[type="submit"].is-pending,
#kc-form-buttons button[type="submit"].is-pending {
  background: var(--rl-btn);
  color: #fff;
  opacity: 1;
  filter: none;
}

.rl-btn--submit.is-ready,
#kc-form-buttons input[type="submit"].is-ready,
#kc-form-buttons button[type="submit"].is-ready {
  background: linear-gradient(160deg, var(--rl-btn-ready) 0%, var(--rl-btn-ready-hover) 100%);
  opacity: 1;
  filter: none;
  border-color: var(--rl-btn-ready-hover);
  box-shadow:
    0 16px 32px color-mix(in srgb, var(--rl-btn-ready) 48%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 30%, transparent) inset;
}

.rl-btn--submit.is-ready:hover,
#kc-form-buttons input[type="submit"].is-ready:hover,
#kc-form-buttons button[type="submit"].is-ready:hover,
.rl-btn--primary:hover,
#kc-form-buttons input[type="submit"]:hover,
#kc-form-buttons button[type="submit"]:hover {
  background: var(--rl-btn-ready-hover);
  transform: translateY(-2px);
  color: #fff;
}

#kc-form-buttons {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.rl-social {
  max-width: 28rem;
  margin: 1.75rem auto 0;
  text-align: center;
}

.rl-social hr,
.rl-social h2,
.rl-social__name,
.kc-social-icon-text {
  display: none !important;
}

.rl-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.rl-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none !important;
}

.rl-social__icon,
.rl-idp-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: block;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.55rem 1.55rem;
  box-shadow: 0 6px 16px rgba(26, 20, 8, 0.14);
  border: 1px solid #ebe3d4;
}

.rl-idp-logo--google,
#social-google .rl-social__icon,
.rl-idp-google .rl-social__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20c10 0 19.5-7.3 19.5-20 0-1.2-.1-2.3-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 10-2 13.6-5.2l-6.3-5.3C29.3 35.3 26.8 36 24 36c-5.3 0-9.7-3.3-11.3-7.9l-6.5 5C9.6 39.6 16.3 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-1.1 3.2-3.5 5.8-6.6 7.5l6.3 5.3C37.3 38.3 43.5 33 43.5 24c0-1.2-.1-2.3-.4-3.5z'/%3E%3C/svg%3E");
}

.rl-idp-logo--facebook,
#social-facebook .rl-social__icon {
  background-color: #1877f2;
  background-size: 1.35rem 1.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 8h3V4h-3c-2.8 0-5 2.2-5 5v3H6v4h3v8h4v-8h3l1-4h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}

.rl-social__btn:hover .rl-social__icon {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(26, 20, 8, 0.18);
}

#try-another-way,
#reset-login {
  color: var(--rl-accent);
  font-size: 0.9rem;
}

#kc-username {
  text-align: center;
  margin-bottom: 1rem;
}

#kc-attempted-username {
  font-weight: 700;
}

@keyframes rl-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes rl-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 900px) {
  .rl-shell,
  body.rl-mode-register .rl-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "form";
  }

  body.rl-mode-register .rl-shell {
    grid-template-areas:
      "form"
      "hero";
  }

  .rl-hero {
    min-height: 32vh;
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .rl-hero__logo {
    width: min(46vw, 220px);
  }

  .rl-mode-tabs {
    top: auto;
    bottom: auto;
    left: 50% !important;
    transform: translate(-50%, 0);
  }

  body.rl-mode-login .rl-mode-tabs {
    top: 32vh;
    transform: translate(-50%, -50%);
  }

  body.rl-mode-register .rl-mode-tabs {
    top: auto;
    bottom: 32vh;
    transform: translate(-50%, 50%);
  }

  .rl-mode-tabs__track {
    flex-direction: row;
  }

  body.rl-mode-login .rl-form-panel,
  body.rl-mode-register .rl-form-panel {
    border-radius: 2rem 2rem 0 0;
    min-height: auto;
  }

  body.rl-mode-register .rl-form-panel {
    border-radius: 0 0 2rem 2rem;
    order: -1;
  }

  #kc-form-buttons {
    justify-content: stretch;
    width: 100%;
  }

  #kc-form-buttons .rl-btn,
  #kc-form-buttons input[type="submit"],
  #kc-form-buttons button[type="submit"] {
    width: 100%;
  }

  .rl-form-row,
  .rl-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-hero__logo, .rl-hero__glow { animation: none !important; }
  #rl-push-panel,
  #rl-swap-chip,
  #rl-push-curtain,
  .rl-push-panel__logo,
  .rl-push-panel__glow,
  .rl-push-panel__bg {
    animation: none !important;
    transition: none !important;
  }
}


/* Language flag switch (DE default → show EN flag; EN → show DE flag) */
.rl-locale,
body.rl-mode-register .rl-locale,
body.rl-push-exit .rl-locale,
body.rl-push-enter .rl-locale {
  position: fixed !important;
  top: 1.15rem !important;
  right: 1.35rem !important;
  left: auto !important;
  z-index: 200 !important;
  transform: none !important;
}

.rl-locale__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rl-line);
  box-shadow: 0 8px 20px rgba(26, 20, 8, 0.12);
  text-decoration: none !important;
  color: var(--rl-ink) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rl-locale__flag:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 12px 24px rgba(26, 20, 8, 0.16);
  text-decoration: none !important;
}

.rl-locale__hint {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rl-flag {
  width: 1.55rem;
  height: 1.1rem;
  border-radius: 0.2rem;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  background-size: cover;
  background-position: center;
}

.rl-flag--de {
  background-image: linear-gradient(
    to bottom,
    #000 0 33.33%,
    #dd0000 33.33% 66.66%,
    #ffce00 66.66% 100%
  );
}

.rl-flag--gb {
  background-color: #012169;
  background-image:
    linear-gradient(to bottom, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(to right, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(to bottom, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(to right, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(60deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(120deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(-60deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(-120deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(60deg, transparent 48%, #c8102e 48% 52%, transparent 52%),
    linear-gradient(120deg, transparent 48%, #c8102e 48% 52%, transparent 52%),
    linear-gradient(-60deg, transparent 48%, #c8102e 48% 52%, transparent 52%),
    linear-gradient(-120deg, transparent 48%, #c8102e 48% 52%, transparent 52%);
}


/* ===== SWITCH BUTTON (hoch sichtbar) ===== */
.rl-mode-tabs {
  z-index: 96 !important;
}

.rl-mode-tabs__track,
.rl-mode-tabs__track--single {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

a.rl-mode-tabs__btn,
a.rl-mode-tabs__btn:not(.is-active),
a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch,
.rl-mode-tabs__btn.rl-mode-tabs__btn--switch,
.rl-mode-tabs__btn--switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 13.4rem !important;
  width: 13.4rem !important;
  max-width: 13.4rem !important;
  min-height: 2.55rem !important;
  padding: 0 0.85rem !important;
  border-radius: 999px !important;
  background: #e2583e !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
  box-shadow: 0 10px 24px rgba(226, 88, 62, 0.55) !important;
  opacity: 1 !important;
  filter: none !important;
}

body.rl-mode-login a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch,
body.rl-mode-login .rl-mode-tabs__btn--switch {
  background: #e2b84a !important;
  box-shadow: 0 10px 24px rgba(62, 124, 177, 0.55) !important;
}

body.rl-mode-register a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch,
body.rl-mode-register .rl-mode-tabs__btn--switch {
  background: #e2b84a !important;
  color: #1a1408 !important;
  text-shadow: none !important;
  box-shadow: 0 10px 24px rgba(196, 160, 53, 0.55) !important;
}

a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch:hover,
.rl-mode-tabs__btn--switch:hover {
  transform: scale(1.06) !important;
  filter: brightness(1.08) !important;
  color: #ffffff !important;
}

body.rl-mode-register a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch:hover {
  color: #1a1408 !important;
}

/* Login / Sign-Up Submit ebenfalls klar */
#kc-form-buttons input[type="submit"],
#kc-form-buttons button[type="submit"],
.rl-btn--primary,
.rl-btn--submit {
  background: #e2b84a !important;
  color: #1a1408 !important;
  opacity: 1 !important;
  border: 2px solid #1a1408 !important;
  box-shadow: 0 12px 28px rgba(62, 124, 177, 0.45) !important;
}

body.rl-mode-register #kc-form-buttons input[type="submit"],
body.rl-mode-register #kc-form-buttons button[type="submit"],
body.rl-mode-register .rl-btn--primary,
body.rl-mode-register .rl-btn--submit {
  background: #e2b84a !important;
  color: #1a1408 !important;
  border-color: #8a6a0a !important;
}



/* ===== FULL BLEED — kein äußerer Rand ===== */
html.rl-html,
body.rl-body,
body.rl-body.rl-mode-login,
body.rl-body.rl-mode-register {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  background: #e8e0d0 !important;
}

.rl-shell,
#rl-shell,
div.rl-shell {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  position: relative !important;
}

.rl-hero,
#rl-hero,
.rl-form-panel,
#rl-form-panel {
  margin: 0 !important;
  border-radius: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.rl-form-panel,
#rl-form-panel {
  background: #e8e0d0 !important;
}

body.rl-mode-login .rl-form-panel,
body.rl-mode-register .rl-form-panel,
body.rl-mode-login #rl-form-panel,
body.rl-mode-register #rl-form-panel {
  border-radius: 0 !important;
}

/* Falls Parent-Theme Login-Card-Padding setzt */
.login-pf,
.login-pf body,
.login-pf-page,
#kc-header,
.card-pf,
.login-pf-page .card-pf {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

#kc-header,
#kc-header-wrapper,
.rl-visually-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .rl-hero,
  #rl-hero {
    min-height: 34vh !important;
  }
  .rl-form-panel,
  #rl-form-panel,
  body.rl-mode-login .rl-form-panel,
  body.rl-mode-register .rl-form-panel {
    border-radius: 0 !important;
    min-height: 66vh !important;
  }
}

/* cache-bust brand pack */
html, body, .rl-shell, #rl-shell, .rl-hero, .rl-form-panel {
  margin: 0 !important;
  border-radius: 0 !important;
}
body.rl-body { background: #e8e0d0 !important; }


/* ===== UI CLEAN BUTTONS (final) ===== */
.rl-mode-tabs {
  z-index: 96 !important;
}

.rl-mode-tabs__track,
.rl-mode-tabs__track--single {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}

a.rl-mode-tabs__btn,
a.rl-mode-tabs__btn:not(.is-active),
a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch,
.rl-mode-tabs__btn.rl-mode-tabs__btn--switch,
.rl-mode-tabs__btn--switch {
  display: grid !important;
  align-items: center !important;
  justify-content: center !important;
  width: 13.4rem !important;
  min-width: 13.4rem !important;
  max-width: 13.4rem !important;
  min-height: 2.55rem !important;
  height: 2.55rem !important;
  padding: 0 0.85rem !important;
  border-radius: 999px !important;
  background: #e2b84a !important;
  color: #1a1408 !important;
  border: 2px solid #ffffff !important;
  outline: 0 !important;
  box-shadow: 0 10px 22px rgba(62, 124, 177, 0.35) !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  filter: none !important;
  transition: background 0.72s cubic-bezier(0.4, 0, 0.2, 1), color 0.72s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.72s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.rl-mode-register a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch,
body.rl-mode-register .rl-mode-tabs__btn--switch {
  background: #e2b84a !important;
  color: #1a1408 !important;
  box-shadow: 0 10px 22px rgba(196, 160, 53, 0.35) !important;
}

a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch:hover,
.rl-mode-tabs__btn--switch:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

body.rl-mode-register a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch:hover {
  color: #1a1408 !important;
}

/* Login / Sign-Up submit — identical shape */
#kc-form-buttons input[type="submit"],
#kc-form-buttons button[type="submit"],
.rl-btn,
.rl-btn--primary,
.rl-btn--submit,
.rl-btn--submit.is-pending,
.rl-btn--submit.is-ready {
  min-width: 8.5rem !important;
  min-height: 2.75rem !important;
  padding: 0.85rem 1.6rem !important;
  border-radius: 0.95rem !important;
  border: 0 !important;
  background: #e2b84a !important;
  color: #1a1408 !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 10px 22px rgba(62, 124, 177, 0.35) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body.rl-mode-register #kc-form-buttons input[type="submit"],
body.rl-mode-register #kc-form-buttons button[type="submit"],
body.rl-mode-register .rl-btn--primary,
body.rl-mode-register .rl-btn--submit {
  background: #e2b84a !important;
  color: #1a1408 !important;
  box-shadow: 0 10px 22px rgba(196, 160, 53, 0.35) !important;
}

#kc-form-buttons input[type="submit"]:hover,
#kc-form-buttons button[type="submit"]:hover,
.rl-btn--primary:hover,
.rl-btn--submit:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
}


/* —— Clean mode swap + login success —— */
.rl-shell {
  perspective: none;
}

.rl-hero,
.rl-form-panel,
.rl-mode-tabs {
  will-change: auto;
}

body.rl-ready .rl-hero,
body.rl-ready .rl-form-panel {
  transition:
    background 0.45s ease,
    border-radius 0.45s ease,
    color 0.3s ease;
}

/* Exit: soft crossfade + slight slide (cleaner than hard push) */
body.rl-anim-exit .rl-hero,
body.rl-anim-exit .rl-form-panel {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
}

body.rl-anim-exit.rl-anim-to-register .rl-hero {
  transform: translateX(12%) scale(0.98);
  opacity: 0;
  filter: blur(6px);
}

body.rl-anim-exit.rl-anim-to-register .rl-form-panel {
  transform: translateX(-10%) scale(0.99);
  opacity: 0;
  filter: blur(4px);
}

body.rl-anim-exit.rl-anim-to-login .rl-hero {
  transform: translateX(-12%) scale(0.98);
  opacity: 0;
  filter: blur(6px);
}

body.rl-anim-exit.rl-anim-to-login .rl-form-panel {
  transform: translateX(10%) scale(0.99);
  opacity: 0;
  filter: blur(4px);
}

body.rl-anim-exit .rl-mode-tabs {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

/* Enter: reverse soft settle */
body.rl-anim-enter .rl-hero,
body.rl-anim-enter .rl-form-panel {
  opacity: 0;
  filter: blur(8px);
}

body.rl-anim-enter.rl-anim-from-login .rl-hero {
  transform: translateX(-10%) scale(0.98);
}

body.rl-anim-enter.rl-anim-from-login .rl-form-panel {
  transform: translateX(10%) scale(0.99);
}

body.rl-anim-enter.rl-anim-from-register .rl-hero {
  transform: translateX(10%) scale(0.98);
}

body.rl-anim-enter.rl-anim-from-register .rl-form-panel {
  transform: translateX(-10%) scale(0.99);
}

body.rl-anim-enter-active .rl-hero,
body.rl-anim-enter-active .rl-form-panel {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
  filter: blur(0) !important;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
}

body.rl-anim-enter .rl-mode-tabs {
  opacity: 0;
}

body.rl-anim-enter-active .rl-mode-tabs {
  opacity: 1;
  transition: opacity 0.45s ease 0.15s;
}

/* Login / Register submit success animation */
.rl-form-submitting {
  pointer-events: none;
}

.rl-form-submitting .rl-field,
.rl-form-submitting .rl-form-actions,
.rl-form-submitting .rl-forgot,
.rl-form-submitting .rl-remember {
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.45s ease;
  opacity: 0.35;
  filter: blur(1px);
}

#kc-form-buttons input[type="submit"].is-loading,
#kc-form-buttons button[type="submit"].is-loading,
.rl-btn--submit.is-loading {
  min-width: 8.5rem !important;
  background: #e2b84a !important;
  color: transparent !important;
  position: relative;
}

#kc-form-buttons input[type="submit"].is-loading::after,
#kc-form-buttons button[type="submit"].is-loading::after,
.rl-btn--submit.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: rl-spin 0.7s linear infinite;
}

#kc-form-buttons input[type="submit"].is-success,
#kc-form-buttons button[type="submit"].is-success,
.rl-btn--submit.is-success {
  background: #2f9e6b !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(47, 158, 107, 0.4) !important;
  transform: scale(1.04);
  animation: rl-success-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.rl-mode-register #kc-form-buttons input[type="submit"].is-success,
body.rl-mode-register #kc-form-buttons button[type="submit"].is-success {
  background: #2f9e6b !important;
  color: #fff !important;
}

body.rl-login-success .rl-hero__logo {
  animation: rl-logo-grant 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.rl-login-success .rl-hero {
  filter: saturate(1.08);
  transition: filter 0.45s ease;
}

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

@keyframes rl-success-pop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1.04); }
}

@keyframes rl-logo-grant {
  0% { transform: scale(1); filter: drop-shadow(0 28px 36px rgba(26, 20, 8, 0.35)); }
  45% { transform: scale(1.06); filter: drop-shadow(0 18px 40px rgba(47, 158, 107, 0.35)); }
  100% { transform: scale(1); filter: drop-shadow(0 28px 36px rgba(26, 20, 8, 0.35)); }
}


/* risingliberty-motion v2 marker */
body.rl-body::before {
  content: none;
}






/* ===== FLUID slide: grey = to register, gold = to login ===== */
#rl-slide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

#rl-slide-overlay.is-grey,
#rl-slide-overlay.is-to-register {
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.16), transparent 46%),
    linear-gradient(155deg, #958c7c 0%, #6b7280 50%, #4b5563 100%);
}

#rl-slide-overlay.is-gold,
#rl-slide-overlay.is-to-login {
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.22), transparent 46%),
    linear-gradient(155deg, #ebc96a 0%, #e2b84a 48%, #8a6a0a 100%);
}

#rl-slide-overlay.is-start {
  opacity: 1;
  transform: translate3d(-100%, 0, 0);
  transition: none;
}

body.rl-slide-exit-to-login #rl-slide-overlay.is-start {
  transform: translate3d(100%, 0, 0);
}

#rl-slide-overlay.is-cover {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
  transition:
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s linear;
}

#rl-slide-overlay.is-exit {
  opacity: 0;
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}

body.rl-slide-enter-from-register #rl-slide-overlay.is-exit {
  /* came to login with gold, exit left */
  transform: translate3d(-100%, 0, 0);
}

body.rl-slide-enter-from-login #rl-slide-overlay.is-exit {
  /* came to register with grey, exit right */
  transform: translate3d(100%, 0, 0);
}

.rl-shell {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body.rl-slide-exit .rl-shell {
  transition:
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.55;
}

body.rl-slide-exit-active.rl-slide-exit-to-register .rl-shell {
  transform: translate3d(12%, 0, 0) scale(0.992);
}

body.rl-slide-exit-active.rl-slide-exit-to-login .rl-shell {
  transform: translate3d(-12%, 0, 0) scale(0.992);
}

body.rl-slide-enter .rl-shell {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.988);
}

body.rl-slide-enter-from-login .rl-shell {
  transform: translate3d(-8%, 0, 0) scale(0.988);
}

body.rl-slide-enter-from-register .rl-shell {
  transform: translate3d(8%, 0, 0) scale(0.988);
}

body.rl-slide-enter-active .rl-shell {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* keep scan styles from previous file — re-include compact */
#rl-login-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(75, 85, 99, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}

#rl-login-flash.is-register {
  background: rgba(138, 106, 10, 0.42);
}

#rl-login-flash.is-show,
html.rl-scan-hold #rl-login-flash {
  opacity: 1;
  pointer-events: all;
}

html.rl-scan-hold .rl-scan {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

html.rl-scan-hold .rl-scan__wait,
html.rl-scan-hold .rl-scan__status {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rl-scan {
  position: relative;
  overflow: hidden;
  width: min(92vw, 380px);
  min-height: 23rem;
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #8b8474 0%, #6b7280 48%, #4b5563 100%);
  color: #f4f6f8;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 70px rgba(26, 20, 8, 0.38);
  padding: 1.45rem 1.4rem 1.4rem;
  transform: translate3d(0, 16px, 0) scale(0.96);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    background 0.35s ease;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

#rl-login-flash.is-register .rl-scan {
  background: linear-gradient(160deg, #e2b84a 0%, #b8860b 48%, #8a6a0a 100%);
  border-color: rgba(255, 236, 180, 0.35);
  box-shadow: 0 28px 70px rgba(138, 106, 10, 0.38);
}

#rl-login-flash.is-show .rl-scan {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.rl-scan__header {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
}

.rl-scan__beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 32%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.08),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  will-change: top;
}

#rl-login-flash.is-scanning .rl-scan__beam {
  opacity: 1;
  animation: rl-scan-beam 1.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.rl-scan__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 1;
}

.rl-scan__row:last-of-type { border-bottom: 0; }

.rl-scan__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.rl-scan__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rl-login-flash.is-scanning #rl-scan-user,
#rl-login-flash.is-scan-pass #rl-scan-pass {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

.rl-scan__result {
  position: relative;
  z-index: 1;
  margin-top: 1.1rem;
  height: 9.4rem;
  min-height: 9.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  flex: none;
}

.rl-scan__mark {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 3.4rem;
}

.rl-scan__wait,
.rl-scan__badge {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.72);
  transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
}

.rl-scan__wait {
  border: 2px dashed rgba(255, 255, 255, 0.45);
}

#rl-login-flash.is-scanning .rl-scan__wait {
  opacity: 1;
  visibility: visible;
  animation: rl-wait-spin 3.2s linear infinite;
}

#rl-login-flash.is-ok .rl-scan__badge:not(.rl-scan__badge--fail),
#rl-login-flash.is-fail .rl-scan__badge--fail {
  opacity: 1;
  visibility: visible;
  animation: rl-mark-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rl-scan__badge {
  background: #2f9e6b;
}

.rl-scan__badge::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.85rem;
  width: 0.85rem;
  height: 1.45rem;
  border: solid #fff;
  border-width: 0 0.26rem 0.26rem 0;
  transform: rotate(45deg);
}

.rl-scan__caption {
  position: relative;
  width: 100%;
  height: 4.5rem;
  min-height: 4.5rem;
  overflow: hidden;
}

.rl-scan__status,
.rl-scan__ok,
.rl-scan__fail-title,
.rl-scan__fail-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.rl-scan__status {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

.rl-scan__ok,
.rl-scan__fail-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.rl-scan__ok { color: #d8ffe8; }

.rl-scan__fail-title { color: #ffe0dc; }

.rl-scan__fail-msg {
  top: 1.45rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#rl-login-flash.is-scanning .rl-scan__status,
#rl-login-flash.is-ok .rl-scan__ok,
#rl-login-flash.is-fail .rl-scan__fail-title,
#rl-login-flash.is-fail .rl-scan__fail-msg {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rl-scan__badge--fail {
  background: #8a2e1d;
}

.rl-scan__badge--fail::before,
.rl-scan__badge--fail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 0.22rem;
  border: 0;
  background: #fff;
  border-radius: 1px;
}

.rl-scan__badge--fail::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.rl-scan__badge--fail::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#rl-login-flash.is-ok .rl-scan {
  box-shadow: 0 28px 70px rgba(47, 158, 107, 0.28);
}

#rl-login-flash.is-fail .rl-scan {
  box-shadow: 0 28px 70px rgba(138, 46, 29, 0.28);
}

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

@keyframes rl-mark-in {
  0% {
    opacity: 0;
    transform: scale(0.42);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  58% {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes rl-fail-ring {
  0% { transform: scale(0.72); box-shadow: 0 0 0 0 rgba(196, 69, 54, 0.5); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(196, 69, 54, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 69, 54, 0); }
}

@keyframes rl-scan-beam {
  0% { top: -35%; }
  100% { top: 115%; }
}

@keyframes rl-success-ring {
  0% { transform: scale(0.72); box-shadow: 0 0 0 0 rgba(47, 158, 107, 0.5); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(47, 158, 107, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 158, 107, 0); }
}

#kc-form-buttons input[type="submit"].is-loading,
#kc-form-buttons button[type="submit"].is-loading {
  position: relative;
  color: transparent !important;
}

#kc-form-buttons input[type="submit"].is-loading::after,
#kc-form-buttons button[type="submit"].is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: rl-spin 0.7s linear infinite;
}

#kc-form-buttons input[type="submit"].is-success,
#kc-form-buttons button[type="submit"].is-success {
  background: #2f9e6b !important;
  color: #fff !important;
}


/* ===== Brand logo wipe (premium) ===== */
#rl-slide-overlay { display: none !important; }

#rl-brand-wipe {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
}

#rl-brand-wipe.is-start,
#rl-brand-wipe.is-rise,
#rl-brand-wipe.is-glow,
#rl-brand-wipe.is-bloom,
#rl-brand-wipe.is-cover,
#rl-brand-wipe.is-settle {
  visibility: visible;
  opacity: 1;
}

.rl-brand-wipe__wash {
  position: absolute;
  inset: -20%;
  opacity: 0;
  transform: scale(0.18);
  border-radius: 50%;
  filter: blur(8px);
  will-change: transform, opacity;
}

#rl-brand-wipe.is-gold .rl-brand-wipe__wash {
  background:
    radial-gradient(circle at 50% 42%,
      rgba(255, 244, 214, 0.95) 0%,
      #ebc96a 22%,
      #e2b84a 48%,
      #8a6a0a 78%,
      #5c4708 100%);
}

#rl-brand-wipe.is-grey .rl-brand-wipe__wash {
  background:
    radial-gradient(circle at 50% 42%,
      rgba(236, 240, 245, 0.95) 0%,
      #8b8474 24%,
      #6b7280 50%,
      #4b5563 78%,
      #374151 100%);
}

.rl-brand-wipe__glow {
  position: absolute;
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

#rl-brand-wipe.is-gold .rl-brand-wipe__glow {
  background: radial-gradient(circle, rgba(255, 228, 150, 0.55) 0%, rgba(196, 160, 53, 0.12) 48%, transparent 72%);
}

#rl-brand-wipe.is-grey .rl-brand-wipe__glow {
  background: radial-gradient(circle, rgba(220, 228, 238, 0.5) 0%, rgba(107, 114, 128, 0.12) 48%, transparent 72%);
}

.rl-brand-wipe__logo {
  position: relative;
  z-index: 2;
  width: min(28vw, 210px);
  height: auto;
  opacity: 0;
  transform: scale(0.72) rotate(-4deg);
  filter: drop-shadow(0 18px 28px rgba(26, 20, 8, 0.28));
  will-change: transform, opacity, filter;
}

.rl-brand-wipe__sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.rl-brand-wipe__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-72px) scale(0.4);
  opacity: 0;
}

#rl-brand-wipe.is-gold .rl-brand-wipe__dot:nth-child(odd) {
  background: rgba(255, 236, 180, 0.85);
  box-shadow: 0 0 10px rgba(224, 195, 90, 0.55);
}

#rl-brand-wipe.is-grey .rl-brand-wipe__dot:nth-child(odd) {
  background: rgba(230, 236, 244, 0.85);
}

/* stages */
#rl-brand-wipe.is-start .rl-brand-wipe__logo {
  transition: none;
}

#rl-brand-wipe.is-rise .rl-brand-wipe__logo {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition:
    opacity 0.42s cubic-bezier(0.45, 0, 0.15, 1),
    transform 0.7s cubic-bezier(0.45, 0, 0.15, 1),
    filter 0.7s cubic-bezier(0.45, 0, 0.15, 1);
}

#rl-brand-wipe.is-glow .rl-brand-wipe__glow {
  opacity: 1;
  transform: scale(1.15);
  transition:
    opacity 0.55s cubic-bezier(0.45, 0, 0.15, 1),
    transform 0.85s cubic-bezier(0.45, 0, 0.15, 1);
}

#rl-brand-wipe.is-glow .rl-brand-wipe__logo {
  transform: scale(1.18) rotate(4deg);
  filter: drop-shadow(0 10px 36px rgba(255, 220, 140, 0.35));
}

#rl-brand-wipe.is-grey.is-glow .rl-brand-wipe__logo {
  filter: drop-shadow(0 10px 36px rgba(180, 190, 205, 0.4));
}

#rl-brand-wipe.is-glow .rl-brand-wipe__sparkles {
  opacity: 1;
  transition: opacity 0.4s ease;
}

#rl-brand-wipe.is-glow .rl-brand-wipe__dot {
  animation: rl-wipe-spark 0.9s cubic-bezier(0.45, 0, 0.15, 1) both;
  animation-delay: calc(var(--i) * 28ms);
}

#rl-brand-wipe.is-bloom .rl-brand-wipe__wash {
  opacity: 1;
  transform: scale(1.05);
  transition:
    opacity 0.55s cubic-bezier(0.45, 0, 0.15, 1),
    transform 0.88s cubic-bezier(0.45, 0, 0.15, 1);
}

#rl-brand-wipe.is-bloom .rl-brand-wipe__logo {
  transform: scale(1.55) rotate(3deg);
}

#rl-brand-wipe.is-cover .rl-brand-wipe__wash {
  opacity: 1;
  transform: scale(2.35);
  filter: blur(0);
  border-radius: 42%;
}

#rl-brand-wipe.is-cover .rl-brand-wipe__logo {
  transform: scale(2.15) rotate(2deg);
  opacity: 0.22;
  transition:
    transform 0.5s cubic-bezier(0.45, 0, 0.15, 1),
    opacity 0.5s cubic-bezier(0.45, 0, 0.15, 1);
}

#rl-brand-wipe.is-cover .rl-brand-wipe__glow {
  opacity: 0.35;
  transform: scale(2.4);
}

/* incoming page */
#rl-brand-wipe.is-cover.is-settle .rl-brand-wipe__logo {
  opacity: 0;
  transform: scale(0.92) rotate(0deg);
  transition:
    opacity 0.55s cubic-bezier(0.45, 0, 0.15, 1),
    transform 0.75s cubic-bezier(0.45, 0, 0.15, 1);
}

#rl-brand-wipe.is-cover.is-settle .rl-brand-wipe__wash {
  opacity: 0;
  transform: scale(2.6);
  transition:
    opacity 0.7s cubic-bezier(0.45, 0, 0.15, 1),
    transform 0.85s cubic-bezier(0.45, 0, 0.15, 1);
}

#rl-brand-wipe.is-cover.is-settle .rl-brand-wipe__glow,
#rl-brand-wipe.is-cover.is-settle .rl-brand-wipe__sparkles {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.rl-wipe-exit .rl-shell {
  transition:
    opacity 0.55s cubic-bezier(0.45, 0, 0.15, 1),
    filter 0.55s cubic-bezier(0.45, 0, 0.15, 1),
    transform 0.7s cubic-bezier(0.45, 0, 0.15, 1);
}

body.rl-wipe-exit-active .rl-shell {
  opacity: 0.22;
  filter: blur(6px) saturate(0.85);
  transform: scale(0.985);
}

body.rl-wipe-enter .rl-shell {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(4px);
}

body.rl-wipe-enter-active .rl-shell {
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: none !important;
  transition:
    opacity 0.7s cubic-bezier(0.45, 0, 0.15, 1),
    transform 0.85s cubic-bezier(0.45, 0, 0.15, 1),
    filter 0.7s cubic-bezier(0.45, 0, 0.15, 1);
}

@keyframes rl-wipe-spark {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 30deg)) translateY(-40px) scale(0.2);
  }
  55% {
    opacity: 0.9;
    transform: rotate(calc(var(--i) * 30deg)) translateY(-118px) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 30deg)) translateY(-150px) scale(0.3);
  }
}


/* ===== Premium motion swap — eine Kette, kein Seitenwechsel ===== */
#rl-brand-wipe,
#rl-slide-overlay,
#rl-push-stage { display: none !important; }

html.rl-push-pending,
html.rl-push-pending body {
  background: #e8e0d0 !important;
}

html.rl-push-pending .rl-hero {
  opacity: 1;
}

html.rl-push-pending .rl-stagger,
html.rl-push-pending .rl-field,
html.rl-push-pending #kc-form-buttons,
html.rl-push-pending .rl-social {
  opacity: 0 !important;
}

#rl-push-curtain {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-height: 100%;
  z-index: 74;
  background: #e8e0d0;
  pointer-events: none;
  will-change: transform;
}

#rl-push-curtain.is-on {
  display: block;
}

#rl-push-panel {
  position: absolute;
  top: 0;
  height: 100%;
  min-height: 100%;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  box-sizing: border-box;
  padding: 0;
}

#rl-push-panel.is-from-left .rl-push-panel__mark,
#rl-push-panel.is-to-grey.is-land .rl-push-panel__mark,
#rl-push-panel.is-to-grey.is-run .rl-push-panel__mark {
  left: 46%;
}

#rl-push-panel.is-from-right .rl-push-panel__mark,
#rl-push-panel.is-to-gold.is-land .rl-push-panel__mark,
#rl-push-panel.is-to-gold.is-run .rl-push-panel__mark {
  left: 54%;
}

#rl-push-panel.is-start,
#rl-push-panel.is-windup,
#rl-push-panel.is-run,
#rl-push-panel.is-land,
#rl-push-panel.is-fade {
  display: flex;
}

#rl-push-panel.is-fade {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.rl-push-panel__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rl-push-panel__bg--grey {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(160deg, #8b8474 0%, #6b7280 48%, #4b5563 100%);
  opacity: 1;
}

.rl-push-panel__bg--blend {
  background: linear-gradient(160deg, #8b8474 0%, #b49a4a 50%, #e2b84a 100%);
  opacity: 0;
}

.rl-push-panel__bg--gold {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.24), transparent 48%),
    radial-gradient(circle at 72% 78%, rgba(255, 220, 120, 0.12), transparent 40%),
    linear-gradient(160deg, #e2b84a 0%, #b8860b 48%, #8a6a0a 100%);
  opacity: 0;
}

#rl-push-panel.is-from-right .rl-push-panel__bg--grey { opacity: 0; }
#rl-push-panel.is-from-right .rl-push-panel__bg--gold { opacity: 1; }

#rl-push-panel.is-to-gold.is-land .rl-push-panel__bg--grey,
#rl-push-panel.is-to-gold.is-land .rl-push-panel__bg--blend { opacity: 0; }
#rl-push-panel.is-to-gold.is-land .rl-push-panel__bg--gold { opacity: 1; }

#rl-push-panel.is-to-grey.is-land .rl-push-panel__bg--gold,
#rl-push-panel.is-to-grey.is-land .rl-push-panel__bg--blend { opacity: 0; }
#rl-push-panel.is-to-grey.is-land .rl-push-panel__bg--grey { opacity: 1; }

#rl-push-panel.is-to-gold.is-run .rl-push-panel__bg--grey {
  animation: rl-tone-out 0.72s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
#rl-push-panel.is-to-gold.is-run .rl-push-panel__bg--blend {
  animation: rl-tone-mid 0.72s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
#rl-push-panel.is-to-gold.is-run .rl-push-panel__bg--gold {
  animation: rl-tone-in 0.72s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

#rl-push-panel.is-to-grey.is-run .rl-push-panel__bg--gold {
  animation: rl-tone-out 0.72s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
#rl-push-panel.is-to-grey.is-run .rl-push-panel__bg--blend {
  animation: rl-tone-mid 0.72s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
#rl-push-panel.is-to-grey.is-run .rl-push-panel__bg--grey {
  animation: rl-tone-in 0.72s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes rl-tone-out {
  0%, 55% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes rl-tone-mid {
  0%, 40% { opacity: 0; }
  70% { opacity: 0.35; }
  100% { opacity: 0; }
}
@keyframes rl-tone-in {
  0%, 50% { opacity: 0; }
  100% { opacity: 1; }
}

.rl-push-panel__glow {
  position: absolute;
  width: min(68%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(196, 160, 53, 0.14) 50%, transparent 72%);
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.88);
  z-index: 1;
  pointer-events: none;
}

#rl-push-panel.is-windup .rl-push-panel__glow {
  animation: rl-glow-beat 0.25s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

#rl-push-panel.is-run .rl-push-panel__glow {
  animation: rl-glow-travel 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes rl-glow-beat {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 0.55; transform: scale(1.02); }
}
@keyframes rl-glow-travel {
  0% { opacity: 0.55; transform: scale(1.02); }
  35% { opacity: 0.7; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1); }
}

.rl-push-panel__brand {
  position: absolute;
  bottom: 1.5rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.rl-push-panel__brand--left { left: 1.5rem; right: auto; }
.rl-push-panel__brand--right { right: 1.5rem; left: auto; }

#rl-push-panel.is-from-left .rl-push-panel__brand--left,
#rl-push-panel.is-to-grey.is-land .rl-push-panel__brand--left,
#rl-push-panel.is-to-grey.is-run .rl-push-panel__brand--left {
  opacity: 1;
}

#rl-push-panel.is-from-right .rl-push-panel__brand--right,
#rl-push-panel.is-to-gold.is-land .rl-push-panel__brand--right,
#rl-push-panel.is-to-gold.is-run .rl-push-panel__brand--right {
  opacity: 1;
}

#rl-push-panel.is-to-gold.is-run .rl-push-panel__brand--left {
  opacity: 0;
}

#rl-push-panel.is-to-grey.is-run .rl-push-panel__brand--right {
  opacity: 0;
}

.rl-push-panel__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(56%, 300px);
  display: grid;
  place-items: center;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.rl-push-panel__logo {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.rl-push-panel__logo--to {
  opacity: 0;
}

#rl-push-panel.is-run .rl-push-panel__logo--from {
  animation: rl-logo-swap-out 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#rl-push-panel.is-run .rl-push-panel__logo--to {
  animation: rl-logo-swap-in 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#rl-push-panel.is-land .rl-push-panel__logo--from {
  opacity: 0;
}

#rl-push-panel.is-land .rl-push-panel__logo--to {
  opacity: 1;
}

.rl-push-panel__shine {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.15) 42%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.15) 58%,
    transparent 68%
  );
  transform: translateX(-130%) rotate(8deg);
  mix-blend-mode: overlay;
  opacity: 0;
}

#rl-push-panel.is-run .rl-push-panel__shine {
  animation: rl-logo-shine 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rl-logo-swap-out {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes rl-logo-swap-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes rl-logo-shine {
  0% { opacity: 0; transform: translateX(-130%) rotate(8deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(130%) rotate(8deg); }
}

/* Mittel-Button: morph statt harter Flip */
#rl-swap-chip {
  position: absolute;
  top: 50%;
  z-index: 91;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13.4rem;
  height: 2.55rem;
  margin: 0;
  border-radius: 999px;
  background: #e2b84a;
  color: #1a1408;
  border: 2px solid #fff;
  font-family: var(--rl-font);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(62, 124, 177, 0.45);
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  transition:
    left 0.72s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#rl-swap-chip.is-from-register {
  background: #e2b84a;
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(196, 160, 53, 0.45);
}

#rl-swap-chip.is-pulse {
  animation: none;
}

#rl-swap-chip.is-to-gold {
  background: #e2b84a;
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(196, 160, 53, 0.45);
}

#rl-swap-chip.is-to-grey {
  background: #e2b84a;
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(62, 124, 177, 0.45);
}

#rl-swap-chip.is-settle {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rl-swap-chip__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.rl-swap-chip__label--in {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
}

#rl-swap-chip.is-morph .rl-swap-chip__label--out {
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
}

#rl-swap-chip.is-morph .rl-swap-chip__label--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Exit: Overlay trägt Logo/Brand, Origin-Spalte bleibt als Farbe */
body.rl-push-exit .rl-hero {
  visibility: visible;
}

body.rl-push-exit .rl-hero__link,
body.rl-push-exit .rl-hero__logo,
body.rl-push-exit .rl-hero__brand {
  opacity: 0;
  visibility: hidden;
}

body.rl-push-exit .rl-form-panel {
  z-index: 75;
  will-change: transform;
}

body.rl-push-exit-active .rl-form-panel .rl-stagger,
body.rl-push-exit-active .rl-form-panel .rl-field {
  opacity: 0.35;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enter: Formular während Panel noch sichtbar */
body.rl-push-enter .rl-hero {
  opacity: 1;
}

body.rl-push-enter .rl-hero__logo {
  opacity: 1;
}

body.rl-push-enter .rl-form-panel {
  opacity: 1;
}

body.rl-push-from-register.rl-push-enter .rl-form-panel,
body.rl-push-from-login.rl-push-enter .rl-form-panel {
  transform: none;
}

body.rl-push-enter-active .rl-form-panel {
  transform: none;
}

body.rl-push-enter .rl-stagger,
body.rl-push-enter .rl-field,
body.rl-push-enter .rl-social {
  opacity: 1;
  transform: none;
}

body.rl-push-enter-active .rl-stagger,
body.rl-push-enter-active .rl-field,
body.rl-push-enter-active .rl-social {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) var(--rl-stagger, 0ms),
    transform 0.45s cubic-bezier(0.77, 0, 0.175, 1) var(--rl-stagger, 0ms);
}

body.rl-push-enter .rl-mode-tabs,
body.rl-push-enter-active .rl-mode-tabs,
body.rl-push-exit .rl-mode-tabs {
  opacity: 1 !important;
  visibility: visible !important;
}

body.rl-push-enter-active #kc-form-buttons,
body.rl-push-enter #kc-form-buttons {
  opacity: 1;
  transform: none;
}

body.rl-ready #kc-form-buttons input[type="submit"]:hover,
body.rl-ready #kc-form-buttons button[type="submit"]:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--rl-btn) 40%, transparent);
}

@media (max-width: 900px) {
  body.rl-push-from-register.rl-push-enter .rl-form-panel,
  body.rl-push-from-login.rl-push-enter .rl-form-panel {
    transform: translate3d(0, 20px, 0);
  }
}

body.rl-mode-register .rl-form-header {
  margin-bottom: 0.55rem;
  gap: 0.35rem;
}

body.rl-mode-register #kc-content,
body.rl-mode-register #kc-content-wrapper {
  flex: 0 1 auto;
  width: 100%;
}

body.rl-mode-register #kc-form-buttons input[type="submit"],
body.rl-mode-register #kc-form-buttons button[type="submit"],
body.rl-mode-register .rl-btn--submit {
  padding: 0.7rem 1.25rem !important;
  min-height: 2.45rem !important;
}

body.rl-mode-register .pf-c-form__group,
body.rl-mode-register .form-group {
  margin: 0 0 0.7rem !important;
}

a.rl-mode-tabs__btn.rl-mode-tabs__btn--switch:hover,
.rl-mode-tabs__btn--switch:hover {
  transform: none !important;
}

.rl-switch-label {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition:
    opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.rl-switch-label--in {
  opacity: 0;
  transform: translateY(8px);
}

.rl-mode-tabs.is-morph .rl-switch-label--out {
  opacity: 0;
  transform: translateY(-8px);
}

.rl-mode-tabs.is-morph .rl-switch-label--in {
  opacity: 1;
  transform: none;
}

.rl-mode-tabs.is-to-gold .rl-mode-tabs__btn--switch {
  background: #e2b84a !important;
  color: #1a1408 !important;
  box-shadow: 0 10px 22px rgba(196, 160, 53, 0.35) !important;
}

.rl-mode-tabs.is-to-grey .rl-mode-tabs__btn--switch {
  background: #e2b84a !important;
  color: #1a1408 !important;
  box-shadow: 0 10px 22px rgba(62, 124, 177, 0.35) !important;
}

#rl-swap-chip {
  display: none !important;
}
