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

:root {
  --color-primary: #fff;
  --color-secondary: #2a2a2a;
  --bg-input: #3a3a3a;
  --color-muted: #aaa;
  --accent: #9b2335;
  /* >= 3:1 against --color-secondary (WCAG 1.4.11) for control boundaries */
  --border-ui: #8a8a8a;
  --color-error: #ff7b6b; /* >= 4.5:1 on dark bg */
  --color-info: #6cb8f0;
  --color-gold: #f39c12;
  --radius: 6px;
  --font-base: "Barlow";

  /* Type scale (rem, 1rem = 16px) */
  --font-size-2xs: 0.6875rem; /* 11px */
  --font-size-xs: 0.8125rem; /* 13px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 0.9375rem; /* 15px */
  --font-size-md: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.1875rem; /* 19px */
  --font-size-2xl: 1.375rem; /* 22px */

  /* Spacing scale for vertical rhythm above 16px (rem, 1rem = 16px) */
  --space-1: 1.25rem; /* 20px */
  --space-2: 1.5rem; /* 24px */
  --space-3: 1.5625rem; /* 25px */
  --space-4: 1.875rem; /* 30px */
  --space-5: 2rem; /* 32px */
  --space-6: 2.25rem; /* 36px */
  --space-7: 2.5rem; /* 40px */

  /* Top bar (back button + language switcher) */
  --topbar-offset: 20px;
  --topbar-btn-height: 30px;
}

html {
  font-size: 100%; /* 1rem = 16px browser default, made explicit */
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-v12-latin-ext_latin-200.woff2")
      format("woff2"),
    url("../fonts/barlow/barlow-v12-latin-ext_latin-200.woff") format("woff");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-v12-latin-ext_latin-300.woff2")
      format("woff2"),
    url("../fonts/barlow/barlow-v12-latin-ext_latin-300.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-v12-latin-ext_latin-regular.woff2")
      format("woff2"),
    url("../fonts/barlow/barlow-v12-latin-ext_latin-regular.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-v12-latin-ext_latin-500.woff2")
      format("woff2"),
    url("../fonts/barlow/barlow-v12-latin-ext_latin-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow/barlow-v12-latin-ext_latin-600.woff2")
      format("woff2"),
    url("../fonts/barlow/barlow-v12-latin-ext_latin-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

body {
  font-family: var(--font-base), sans-serif;
  background: var(--color-secondary);
  color: var(--color-primary);
  min-height: 100vh;
  margin: 0;
}

.d-none {
  display: none;
}

a {
  color: var(--color-primary);
  text-decoration: underline;

  &:hover,
  &:focus-visible {
    color: var(--color-muted);
    text-decoration: none;
  }
}

.content {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.column-login {
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  position: relative;
}

.column--content {
  width: 100%;
  max-width: 37.5rem; /* 600px */
  padding: calc(
      var(--topbar-offset) + var(--topbar-btn-height) + var(--space-1)
    )
    var(--space-4) var(--space-7);
}

.column--content .logo-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.column--content .logo-wrapper #logo-img {
  max-width: 18.75rem; /* 300px */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.column--content .logo-wrapper .logo-claim {
  text-transform: uppercase;
  font-size: var(--font-size-2xl);
  line-height: 1.1;
  max-width: 17.5rem; /* 280px */
  font-weight: 400;
  margin: 0 auto;
  margin-top: var(--space-1);
  margin-bottom: var(--space-7);
  line-height: 1.2;
}

html[lang="de"] .column--content .logo-wrapper .logo-claim {
  max-width: 14.375rem; /* 230px */
}

html[lang="en"] .column--content .logo-wrapper .logo-claim {
  max-width: 17.5rem; /* 280px */
}

html body.register-page .column--content .logo-wrapper .logo-claim {
  max-width: 100%;
  text-transform: none;
}

html body.verify-email-page .column--content .logo-wrapper .logo-claim {
  max-width: 20rem; /* 320px */
  font-size: var(--font-size-lg);
  margin-top: var(--space-3);
  text-transform: none;
}

.column-illustration {
  background: #1e1e1e;
  width: 40%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.column-illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Language switcher dropdown */
.lang-switcher {
  position: absolute;
  top: var(--topbar-offset);
  right: var(--topbar-offset);
  z-index: 100;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-current {
  background: var(--color-primary);
  border: 1px solid #555;
  border-radius: var(--radius);
  color: var(--color-secondary);
  height: var(--topbar-btn-height);
  padding: 0 12px;
  font-size: var(--font-size-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lang-current:hover {
  opacity: 0.9;
}

.lang-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: transparent;
  padding-top: 4px;
  min-width: 80px;
  z-index: 100;
}

.lang-options--inner {
  background: var(--bg-input);
  border: 1px solid #555;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* With JS, visibility is owned by the .is-open class (which also keeps
   aria-expanded in sync, including for hover). Without JS there is no
   disclosure ARIA, so plain hover/focus-within show the links. */
.lang-dropdown.is-open .lang-options,
html:not(.js) .lang-dropdown:hover .lang-options,
html:not(.js) .lang-dropdown:focus-within .lang-options {
  display: block;
}

.lang-option {
  display: block;
  padding: 8px 12px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--font-size-xs);
  transition: all 0.2s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: #4a4a4a;
  color: var(--color-primary);
}

/* Headings */
.step-headline {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.step-headline--centered,
.centered-block {
  text-align: center;
}

.step-sub {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

/* Form fields */
.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: var(--space-4);
}

.field-row .field {
  flex: 1;
  margin-bottom: 0;
}

.field {
  margin-bottom: var(--space-4);
  position: relative;
}

.field label:not(.checkbox-label) {
  position: absolute;
  top: 13px;
  left: 15px;
  font-size: var(--font-size-base);
  color: var(--color-muted);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.field:has(input:not(:placeholder-shown)) label,
.field:has(input:focus-within) label,
.field:has(.field-input:not(:placeholder-shown)) label,
.field:has(.field-input:focus-within) label,
.field:has(select:not(:placeholder-shown)) label,
.field:has(select:focus-within) label {
  top: -7px;
  left: 14px;
  background: var(--color-secondary);
  padding: 0 6px;
  font-size: var(--font-size-2xs);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field select,
.field-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-secondary);
  border: 1px solid var(--border-ui);
  border-radius: 0;
  color: var(--color-primary);
  font-size: var(--font-size-base);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:focus,
.field select:focus,
.field-input:focus {
  border-color: var(--color-primary);
}

/* Live password minimum-length hint, styled as a floating popup
   (replaces the native browser validation bubble) */
.password-hint {
  display: none;
  align-items: flex-start;
  gap: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  z-index: 20;
  padding: 10px 14px;
  background: rgba(200, 0, 0, 1);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: #fff;
}

/* Info icon rendered in front of the hint text */
.password-hint::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Arrow/tail pointing up at the input */
.password-hint::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: rgba(200, 0, 0, 1);
  transform: rotate(45deg);
}

.password-hint.is-visible {
  display: flex;
}

/* Visually hidden but available to assistive technology */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.instruction {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

/* Form options row */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-1);
}

.remember-me {
  color: var(--color-muted);
  cursor: pointer;
}

.forgot-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--font-size-xs);
}

.forgot-link:hover,
.forgot-link:focus-visible {
  color: var(--color-primary);
}

/* Buttons */
.primary-btn {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: var(--color-secondary);
  border: none;
  border-radius: 0;
  font-size: var(--font-size-base);
  font-family: var(--font-base), sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn:hover {
  opacity: 0.9;
}

.secondary-form-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--border-ui);
  border-radius: 0;
  font-size: var(--font-size-base);
  font-family: var(--font-base), sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.secondary-form-btn:hover,
.secondary-form-btn:focus-visible {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-primary);
}

/* Stacked buttons on pages with a primary and a secondary action */
#kc-form-buttons > button + button {
  margin-top: 10px;
}

.secondary-btn {
  position: absolute;
  top: var(--topbar-offset);
  left: var(--topbar-offset);
  z-index: 100;
  height: var(--topbar-btn-height);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  color: var(--color-primary);
}

.secondary-btn svg {
  width: 16px;
  height: 16px;
}

/* Registration link */
#kc-registration-container {
  text-align: center;
  margin-top: 16px;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

/* Login method selection */
.login-method-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 1px solid var(--border-ui);
  border-radius: 0;
  color: var(--color-primary);
  font-family: var(--font-base), sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.login-method-card:hover,
.login-method-card:focus-visible {
  border-color: var(--color-muted);
}

.login-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--color-secondary);
  color: var(--color-primary);
}

.login-method-icon svg {
  width: 18px;
  height: 18px;
}

.login-method-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-method-title,
.login-method-desc {
  display: block;
}

.login-method-title {
  font-size: var(--font-size-base);
  font-weight: 600;
}

.form-title {
  font-size: var(--font-size-base);
  font-weight: 600;
}

.form-title:not(:empty) {
  padding-bottom: 16px;
}

.login-method-desc {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  line-height: 1.4;
}

/* ---------------------------------------------------------------
   Fallback styles for Keycloak's default-rendered login steps
   that don't have a dedicated .ftl override in this theme yet
   (e.g. login-otp.ftl, WebAuthn, recovery codes). These templates
   rely on ${properties.kcXxx!} classes that resolve to empty
   strings here, so we target the stable ids/attributes Keycloak
   always emits instead, reusing the same design tokens as the
   rest of the theme. Selectors are scoped to empty class values
   (or :not(.primary-btn)) so they never affect already-customized
   templates.
---------------------------------------------------------------- */

/* Plain instruction paragraphs (e.g. "Zugangscode eingeben") */
.column--content > p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

/* "Logged in as X" / restart-login bar */
#kc-username {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #555;
  border-radius: var(--radius);
}

#kc-attempted-username {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--font-size-xs);
}

#reset-login {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--font-size-xs);
  white-space: nowrap;
}

#reset-login:hover,
#reset-login:focus-visible {
  color: var(--color-primary);
}

/* no icon font is loaded in this theme, hide the empty tooltip icon */
.kc-login-tooltip i {
  display: none;
}

/* Label + input pairs rendered without the .field wrapper */
label[class=""] {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-bottom: 6px;
}

input[type="text"][class=""],
input[type="password"][class=""],
input[type="email"][class=""] {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-secondary);
  border: 1px solid var(--border-ui);
  border-radius: 0;
  color: var(--color-primary);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}

input[type="text"][class=""]:focus,
input[type="password"][class=""]:focus,
input[type="email"][class=""]:focus {
  border-color: var(--color-primary);
}

/* Options row and buttons for pages without .form-options/.primary-btn */
#kc-form-options:empty {
  display: none;
}

#kc-form-buttons input[type="submit"]:not(.primary-btn) {
  width: 100%;
  padding: 14px;
  border-radius: 0;
  font-size: var(--font-size-base);
  font-family: var(--font-base), sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

#kc-form-buttons input[type="submit"]:not(.primary-btn):first-of-type {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: none;
}

#kc-form-buttons input[type="submit"]:not(.primary-btn):not(:first-of-type) {
  background: transparent;
  border: 1px solid var(--border-ui);
  color: var(--color-primary);
}

#kc-form-buttons input[type="submit"]:not(.primary-btn):hover {
  opacity: 0.9;
}

/* "Try another way" link */
#kc-select-try-another-way-form {
  margin-top: 20px;
  text-align: center;
}

#try-another-way {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-base), sans-serif;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  text-decoration: none;
  transition: color 0.2s ease;
}

#try-another-way:hover,
#try-another-way:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Social providers */
.login-section {
  margin-top: var(--space-6);
}

.social-label {
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  gap: 12px; /* space between line and text */
}

.social-label::before,
.social-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #555;
}

.social-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 0;
  color: var(--color-secondary, #fff);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--font-size-sm);
  background: var(--color-primary);
}

.social-pill:hover,
.social-pill:focus-visible {
  border-color: var(--color-muted);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* Alerts */
.alert-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--font-size-xs);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  padding: 12px 16px;
  border-radius: 0;
  border: 1px solid currentColor;
}

.alert-inline::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-color: currentColor;
  -webkit-mask-image: var(--alert-icon);
  mask-image: var(--alert-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.alert-error {
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  color: var(--color-error);
  background: rgba(231, 76, 60, 0.08);
}

.alert-success {
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.08);
}

.alert-warning {
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  color: #f39c12;
  background: rgba(243, 156, 18, 0.08);
}

.alert-info {
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  color: var(--color-info);
  background: rgba(52, 152, 219, 0.08);
}

/* Legal Text */
.registration-legal {
  margin-top: var(--space-7);
  font-size: var(--font-size-2xs);
  line-height: 1.6;
  color: var(--color-muted);
  text-align: center;
  max-width: 25rem; /* 400px */
  margin-left: auto;
  margin-right: auto;
}

.registration-legal a {
  color: var(--color-muted);

  &:hover,
  &:focus-visible {
    color: var(--color-primary);
  }
}

.registration-legal a:hover {
  color: var(--color-primary);
}

.field.field-agb {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.field.field-agb label.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: var(--font-size-sm) !important;
  color: var(--color-primary);
}

.field.field-agb input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 40px;
  height: 20px;
  background-color: var(--border-ui);
  border-radius: 20px;
  transition: 0.4s;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.field.field-agb input[type="checkbox"]::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.field.field-agb input[type="checkbox"]:checked {
  background-color: var(--color-primary);
}

.field.field-agb input[type="checkbox"]:checked::before {
  transform: translateX(20px);
  background-color: var(--color-secondary);
}

/* Verify email card */
.verify-email-card {
  border-radius: 0;
  padding: var(--space-7) var(--space-4);
  padding-top: 0;
  text-align: center;
}

.verify-email-refresh {
  padding: 30px 0 0 0;
  font-size: var(--font-size-sm);
}

.verify-email-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-1);
  color: var(--color-gold);
}

.verify-email-icon svg {
  width: 48px;
  height: 48px;
}

.verify-email-sent {
  font-size: var(--font-size-xl);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.verify-email-lead {
  color: var(--color-gold);
  font-size: var(--font-size-xl);
  font-weight: 500;
  line-height: 1.4;
  max-width: 23.75rem; /* 380px */
  margin: 0 auto var(--space-2);
}

.verify-email-check {
  color: var(--color-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 14px;
}

.verify-email-address {
  width: 100%;
  padding: 14px var(--space-1);
  background: var(--bg-input);
  border-radius: 0;
  color: var(--color-primary);
  font-size: var(--font-size-md);
  font-weight: 600;
  word-break: break-all;
}

.verify-email-resend {
  text-align: center;
}

.verify-email-resend-question {
  color: var(--color-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.pill-btn {
  display: inline-block;
  padding: 14px var(--space-5);
  border: 1px solid var(--color-primary);
  border-radius: 0;
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pill-btn:hover,
.pill-btn:focus-visible {
  background: var(--color-primary);
  color: var(--color-secondary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .column-login {
    width: 100%;
  }
  .column-illustration {
    display: none;
  }

  .verify-email-card {
    padding: var(--space-4) var(--space-1);
  }
}

/* ---------------------------------------------------------------
   Accessibility helpers
---------------------------------------------------------------- */

/* Consistent, high-contrast keyboard focus indicator (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

/* Controls that already change their own border on focus get a single
   thicker border instead of border + offset outline. The transparent
   outline keeps a visible indicator in forced-colors mode. */
.field input:focus-visible,
.field select:focus-visible,
.field-input:focus-visible,
input[type="text"][class=""]:focus-visible,
input[type="password"][class=""]:focus-visible,
input[type="email"][class=""]:focus-visible,
.login-method-card:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Skip link: first focusable element, visible only on focus (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 600;
  transform: translateY(-120%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--color-secondary);
  outline-color: var(--color-gold);
}

/* Reflow at 320px / 400% zoom (WCAG 1.4.10) */
@media (max-width: 480px) {
  .field-row {
    flex-direction: column;
    gap: var(--space-4);
  }
}

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