/* ==========================================================
   RedactSure – Keycloak Login Theme
   Split-panel layout · Light theme with crimson accent
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

/* ── Reset & Base ──────────────────────────────────────── */

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

html, body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #b30000;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #8a0000;
}

/* ── Split Layout ──────────────────────────────────────── */

.rs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.rs-split--single {
  grid-template-columns: 1fr;
}

/* ── Left Panel (Marketing) ────────────────────────────── */

.rs-panel {
  background: #111111;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

/* Content layer */
.rs-panel__inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.rs-panel__hero {
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 10%;
}

.rs-panel__headline {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
}

.rs-panel__brand-text {
  color: #e84040;
}

.rs-panel__tagline {
  font-size: 15px;
  color: #808080;
  line-height: 1.7;
}

.rs-panel__footer {
  margin-top: 40px;
  font-size: 12px;
  color: #555555;
}

/* ── Right Panel (Form) ────────────────────────────────── */

.rs-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #ffffff;
}

.rs-form-panel__inner {
  width: 100%;
  max-width: 380px;
}

.rs-form-panel__logo {
  margin-bottom: 36px;
}

.rs-form-panel__logo img {
  height: 28px;
  width: auto;
}

.rs-split--single .rs-form-panel__logo {
  text-align: center;
}

/* ── Card header ───────────────────────────────────────── */

.rs-card__title {
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 6px;
}

.rs-card__subtitle {
  font-size: 15px;
  color: #808080;
  margin-bottom: 28px;
}

/* ── Alerts ────────────────────────────────────────────── */

.rs-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.rs-alert::before {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.rs-alert--error {
  background: rgba(179, 0, 0, 0.04);
  border: 1px solid rgba(179, 0, 0, 0.15);
  color: #b30000;
}

.rs-alert--error::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b30000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
}

.rs-alert--success {
  background: rgba(21, 87, 36, 0.04);
  border: 1px solid rgba(21, 87, 36, 0.15);
  color: #155724;
}

.rs-alert--success::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23155724' 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");
}

.rs-alert--info {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid #e0e0e0;
  color: #555555;
}

.rs-alert--info::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23808080' 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");
}

.rs-alert--warning {
  background: rgba(179, 0, 0, 0.02);
  border: 1px solid rgba(179, 0, 0, 0.1);
  color: #808080;
}

.rs-alert--warning::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b30000' 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");
}

/* ── Form Elements ─────────────────────────────────────── */

.rs-form-group {
  margin-bottom: 20px;
}

.rs-form-group label,
.rs-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.rs-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #000000;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.rs-input:focus {
  border-color: #b30000;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.08);
}

.rs-input::placeholder {
  color: #b0b0b0;
}

.rs-input--error {
  border-color: #b30000;
}

/* ── Label row (label + forgot link) ───────────────────── */

.rs-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rs-label-row label {
  margin-bottom: 0;
}

.rs-label-row a {
  font-size: 13px;
  font-weight: 500;
  color: #b30000;
}

/* ── Checkbox ──────────────────────────────────────────── */

.rs-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.rs-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #b30000;
  cursor: pointer;
  flex-shrink: 0;
}

.rs-checkbox label {
  font-size: 14px;
  font-weight: 400;
  color: #808080;
  cursor: pointer;
  margin: 0;
}

/* ── Buttons ───────────────────────────────────────────── */

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.rs-btn--primary {
  width: 100%;
  color: #ffffff;
  background: #b30000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rs-btn--primary:hover {
  background: #990000;
  box-shadow: 0 2px 8px rgba(179, 0, 0, 0.25);
  color: #ffffff;
}

.rs-btn--ghost {
  background: transparent;
  border: 2px solid #e0e0e0;
  color: #000000;
}

.rs-btn--ghost:hover {
  border-color: #b30000;
  color: #b30000;
}

.rs-btn--link {
  background: none;
  border: none;
  color: #b30000;
  padding: 0;
  height: auto;
  font-weight: 500;
}

.rs-btn--link:hover {
  color: #8a0000;
}

/* ── Form actions ──────────────────────────────────────── */

.rs-form-actions {
  margin-top: 28px;
}

/* ── Separator ─────────────────────────────────────────── */

.rs-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rs-separator::before,
.rs-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* ── Social / Identity Providers ───────────────────────── */

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

.rs-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #000000;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.rs-social-btn:hover {
  border-color: #b30000;
  color: #b30000;
}

/* ── Footer link ───────────────────────────────────────── */

.rs-form-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: #808080;
}

.rs-form-footer a {
  color: #b30000;
  font-weight: 600;
}

/* ── OTP / TOTP ────────────────────────────────────────── */

.rs-otp-info {
  font-size: 14px;
  color: #808080;
  margin-bottom: 24px;
  line-height: 1.7;
}

.rs-otp-info ol {
  padding-left: 20px;
  margin-top: 12px;
}

.rs-otp-info li {
  margin-bottom: 8px;
}

.rs-qr-code {
  display: flex;
  justify-content: center;
  margin: 24px 0;
  padding: 20px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.rs-qr-code img {
  display: block;
}

.rs-totp-secret {
  text-align: center;
  margin-bottom: 24px;
}

.rs-totp-secret code {
  display: inline-block;
  padding: 10px 18px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Inter", monospace;
  font-size: 14px;
  color: #000000;
  letter-spacing: 0.08em;
  word-break: break-all;
}

/* ── Email Verification ────────────────────────────────── */

.rs-form-panel__inner--centered {
  text-align: center;
}

.rs-card__title--centered {
  text-align: center;
}

.rs-card__subtitle--centered {
  text-align: center;
}

.rs-verify-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 0, 0, 0.04);
  border: 1px solid rgba(179, 0, 0, 0.12);
  border-radius: 50%;
  color: #b30000;
}

/* ── Inline row (two buttons side by side) ─────────────── */

.rs-btn-row {
  display: flex;
  gap: 12px;
}

.rs-btn-row .rs-btn {
  flex: 1;
}

/* ── Required asterisk ─────────────────────────────────── */

.rs-required {
  color: #b30000;
  margin-left: 2px;
}

/* ── Back link ─────────────────────────────────────────── */

.rs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #b30000;
  margin-bottom: 28px;
}

.rs-back-link:hover {
  color: #8a0000;
}

/* ── Auth Method Selector ──────────────────────────────── */

.rs-auth-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rs-auth-method {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: "Inter", sans-serif;
  color: #000000;
  text-decoration: none;
}

.rs-auth-method:hover {
  border-color: #b30000;
}

.rs-auth-method__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 0, 0, 0.04);
  border-radius: 10px;
  color: #b30000;
}

.rs-auth-method__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rs-auth-method__title {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
}

.rs-auth-method__desc {
  font-size: 13px;
  color: #808080;
}

.rs-auth-method__arrow {
  flex-shrink: 0;
  color: #b0b0b0;
  transition: color 0.2s;
}

.rs-auth-method:hover .rs-auth-method__arrow {
  color: #b30000;
}

/* ── Alternate auth link ───────────────────────────────── */

.rs-alt-auth {
  text-align: center;
}

.rs-alt-auth__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #b30000;
  transition: color 0.2s;
}

.rs-alt-auth__link:hover {
  color: #8a0000;
}

/* ── Recovery Codes ─────────────────────────────────────── */

.rs-recovery-codes {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.rs-recovery-codes__list {
  list-style: none;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #333333;
  line-height: 2;
  letter-spacing: 0.06em;
}

.rs-recovery-codes__copy {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #b30000;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.rs-recovery-codes__copy:hover {
  color: #8a0000;
}

/* ── Error header ──────────────────────────────────────── */

.rs-error-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.rs-error-header__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 0, 0, 0.04);
  border: 1px solid rgba(179, 0, 0, 0.12);
  border-radius: 10px;
  color: #b30000;
}

.rs-error-header__title {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
}

/* ── Logout header ─────────────────────────────────────── */

.rs-logout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.rs-logout-header__title {
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 4px;
}

.rs-logout-header__desc {
  font-size: 15px;
  color: #808080;
}

.rs-logout-header__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 0, 0, 0.04);
  border: 1px solid rgba(179, 0, 0, 0.12);
  border-radius: 12px;
  color: #b30000;
}

/* ── Keycloak Base Theme Overrides ──────────────────────── */

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

.form-group label,
.pf-c-form__label,
.pf-c-form__label-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.pf-c-form-control,
.pf-c-form-control[type="text"],
.pf-c-form-control[type="email"],
.pf-c-form-control[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #000000;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pf-c-form-control:focus {
  border-color: #b30000;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.08);
}

.pf-c-form-control::placeholder {
  color: #b0b0b0;
}

.pf-c-input-group {
  display: flex;
  gap: 0;
}

.pf-c-input-group .pf-c-form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

.pf-c-input-group .pf-c-button.pf-m-control {
  height: 46px;
  padding: 0 14px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: #808080;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.pf-c-input-group .pf-c-button.pf-m-control:hover {
  color: #b30000;
}

.pf-c-button.pf-m-primary,
input.pf-c-button.pf-m-primary {
  width: 100%;
  height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #b30000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.pf-c-button.pf-m-primary:hover,
input.pf-c-button.pf-m-primary:hover {
  background: #990000;
  box-shadow: 0 2px 8px rgba(179, 0, 0, 0.25);
  color: #ffffff;
}

#kc-form-options a {
  color: #b30000;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

#kc-form-options a:hover {
  color: #8a0000;
}

#kc-form-options {
  margin-bottom: 16px;
}

.form-group .col-xs-12 > *:not(label):not(input):not(.pf-c-input-group):not(#kc-form-options):not(#kc-form-buttons) {
  color: #b30000;
  font-size: 13px;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 960px) {
  .rs-split {
    grid-template-columns: 1fr;
  }

  .rs-panel {
    display: none;
  }

  .rs-form-panel {
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  .rs-form-panel {
    padding: 32px 20px;
  }

  .rs-card__title {
    font-size: 22px;
  }
}

/* ==========================================================
   RedactSure product design system · August 2026
   Shared by every authentication state.
   ========================================================== */

:root {
  color-scheme: light;
  --rs-canvas: #faf9f7;
  --rs-surface-subtle: #f5f4f2;
  --rs-surface: #ffffff;
  --rs-ink: #1a1a1a;
  --rs-text: #3f3f3f;
  --rs-muted: #5c5c5c;
  --rs-faint: #85837f;
  --rs-border-soft: #efeee9;
  --rs-border: #dedcd8;
  --rs-border-strong: #bfbdb8;
  --rs-brand: #b30000;
  --rs-brand-hover: #990000;
  --rs-error: #dc2626;
  --rs-success: #237a4b;
  --rs-focus: rgba(179, 0, 0, 0.17);
  --rs-shadow: 0 18px 48px rgba(28, 24, 20, 0.10), 0 2px 8px rgba(28, 24, 20, 0.05);
  --rs-radius-sm: 6px;
  --rs-radius-md: 10px;
  --rs-radius-lg: 14px;
}

html {
  min-width: 320px;
  background: var(--rs-canvas);
}

body {
  min-width: 320px;
  min-height: 100%;
  color: var(--rs-ink);
  background: var(--rs-canvas);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

::selection {
  color: var(--rs-ink);
  background: #f2dede;
}

a {
  color: var(--rs-brand);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

a:hover {
  color: var(--rs-brand-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--rs-focus);
  outline-offset: 3px;
}

.rs-split {
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(520px, 1.1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--rs-canvas);
}

.rs-split--single {
  grid-template-columns: minmax(0, 1fr);
}

.rs-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px);
  border-right: 1px solid #333333;
  background: var(--rs-ink);
}

.rs-panel__waves,
.rs-panel__glow {
  display: none;
}

.rs-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 540px;
  min-height: min(690px, calc(100svh - 112px));
  flex-direction: column;
}

.rs-panel__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: #d2d0cc;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rs-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #48b77b;
  box-shadow: 0 0 0 3px rgba(72, 183, 123, 0.12);
}

.rs-panel__hero {
  margin: auto 0;
  padding: 72px 0 60px;
}

.rs-panel__headline {
  max-width: 520px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.rs-panel__tagline {
  max-width: 500px;
  margin: 0;
  color: #b9b7b2;
  font-size: 15px;
  line-height: 1.75;
}

.rs-boundary {
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid #3a3a3a;
  border-radius: var(--rs-radius-lg);
  background: #222222;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.rs-boundary__header,
.rs-boundary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rs-boundary__header {
  min-height: 46px;
  padding: 0 18px;
  color: #d7d5d1;
  background: #282828;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rs-boundary__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94d5af;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rs-boundary__status .rs-status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.rs-boundary__row {
  min-height: 48px;
  padding: 0 18px;
  border-top: 1px solid #333333;
  color: #a7a5a1;
  font-size: 12px;
}

.rs-boundary__row code {
  color: #f3f1ed;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.rs-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  color: #777571;
  font-size: 11px;
}

.rs-form-panel {
  display: flex;
  min-width: 0;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 6vw, 88px);
  background: var(--rs-canvas);
}

.rs-form-panel__inner {
  width: 100%;
  max-width: 460px;
  padding: clamp(32px, 4vw, 44px);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface);
  box-shadow: var(--rs-shadow);
}

.rs-split--single .rs-form-panel__inner {
  max-width: 520px;
}

.rs-form-panel__logo,
.rs-split--single .rs-form-panel__logo {
  margin: 0 0 36px;
  text-align: left;
}

.rs-wordmark {
  display: inline-block;
  color: var(--rs-ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.6;
  text-decoration: none;
}

.rs-wordmark:hover {
  color: var(--rs-ink);
  text-decoration: none;
}

.rs-card__title {
  margin: 0 0 8px;
  color: var(--rs-ink);
  font-size: clamp(25px, 3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.rs-card__subtitle {
  margin: 0 0 30px;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.65;
}

.rs-card__subtitle:empty {
  display: none;
}

.rs-card__subtitle:empty + .rs-alert,
.rs-card__subtitle:empty + form,
.rs-card__subtitle:empty + .rs-form-actions {
  margin-top: 28px;
}

.rs-alert {
  display: block;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-md);
  background: var(--rs-surface-subtle);
  color: var(--rs-text);
  font-size: 13px;
  line-height: 1.55;
}

.rs-alert::before {
  content: none;
}

.rs-alert--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.rs-alert--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.rs-alert--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.rs-alert--info {
  border-color: var(--rs-border);
  background: var(--rs-surface-subtle);
  color: var(--rs-text);
}

.rs-form-group,
.form-group {
  margin-bottom: 20px;
}

.rs-form-group label,
.rs-label,
.form-group label,
.pf-c-form__label,
.pf-c-form__label-text {
  display: block;
  margin: 0 0 7px;
  color: var(--rs-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.rs-input,
.pf-c-form-control,
.pf-c-form-control[type="text"],
.pf-c-form-control[type="email"],
.pf-c-form-control[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--rs-border-strong);
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--rs-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

textarea.rs-input,
textarea.pf-c-form-control {
  height: auto;
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

select.rs-input,
select.pf-c-form-control {
  cursor: pointer;
}

.rs-input:hover,
.pf-c-form-control:hover {
  border-color: #97948f;
}

.rs-input:focus,
.pf-c-form-control:focus {
  border-color: var(--rs-brand);
  box-shadow: 0 0 0 3px var(--rs-focus);
  outline: none;
}

.rs-input::placeholder,
.pf-c-form-control::placeholder {
  color: var(--rs-faint);
  opacity: 1;
}

.rs-input--error,
.rs-input[aria-invalid="true"],
.pf-c-form-control[aria-invalid="true"] {
  border-color: var(--rs-error);
}

.rs-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
}

.rs-label-row label {
  margin: 0;
}

.rs-label-row a,
#kc-form-options a {
  color: var(--rs-brand);
  font-size: 12px;
  font-weight: 600;
}

.rs-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 24px;
}

.rs-checkbox input[type="checkbox"],
.rs-checkbox input[type="radio"] {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--rs-brand);
  cursor: pointer;
}

.rs-checkbox label {
  margin: 0;
  color: var(--rs-muted);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.rs-form-actions {
  margin-top: 28px;
}

.rs-btn,
.pf-c-button.pf-m-primary,
input.pf-c-button.pf-m-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.rs-btn--primary,
.pf-c-button.pf-m-primary,
input.pf-c-button.pf-m-primary {
  width: 100%;
  margin: 0;
  border-color: var(--rs-ink);
  background: var(--rs-ink);
  color: #fff;
}

.rs-btn--primary:hover,
.pf-c-button.pf-m-primary:hover,
input.pf-c-button.pf-m-primary:hover {
  border-color: var(--rs-brand);
  background: var(--rs-brand);
  box-shadow: none;
  color: #fff;
  text-decoration: none;
}

.rs-btn--primary:active,
.pf-c-button.pf-m-primary:active,
input.pf-c-button.pf-m-primary:active {
  border-color: var(--rs-brand-hover);
  background: var(--rs-brand-hover);
  transform: translateY(1px);
}

.rs-btn--ghost {
  border-color: var(--rs-border);
  background: var(--rs-surface);
  color: var(--rs-ink);
}

.rs-btn--ghost:hover {
  border-color: var(--rs-border-strong);
  background: var(--rs-surface-subtle);
  color: var(--rs-ink);
  text-decoration: none;
}

.rs-btn-row {
  display: flex;
  gap: 10px;
}

.rs-btn-row .rs-btn {
  flex: 1 1 0;
}

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

.rs-social-btn {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  background: var(--rs-surface);
  color: var(--rs-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.rs-social-btn:hover {
  border-color: var(--rs-border-strong);
  background: var(--rs-surface-subtle);
  color: var(--rs-ink);
  text-decoration: none;
}

.rs-separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--rs-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-separator::before,
.rs-separator::after {
  height: 1px;
  background: var(--rs-border-soft);
}

.rs-form-footer {
  margin-top: 30px;
  color: var(--rs-muted);
  font-size: 13px;
  text-align: center;
}

.rs-form-footer a {
  color: var(--rs-brand);
  font-weight: 650;
}

.rs-back-link,
.rs-alt-auth__link {
  color: var(--rs-brand);
  font-size: 13px;
  font-weight: 600;
}

.rs-back-link {
  margin-bottom: 0;
}

.rs-alt-auth {
  text-align: center;
}

.rs-otp-info {
  margin-bottom: 24px;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.65;
}

.rs-otp-info ol {
  margin: 0;
  padding-left: 20px;
}

.rs-otp-info li {
  margin-bottom: 9px;
  padding-left: 3px;
}

.rs-qr-code {
  display: flex;
  width: fit-content;
  margin: 24px auto;
  padding: 16px;
  justify-content: center;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-md);
  background: #fff;
}

.rs-totp-secret {
  margin-bottom: 26px;
  text-align: center;
}

.rs-totp-secret code {
  display: inline-block;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  background: var(--rs-surface-subtle);
  color: var(--rs-ink);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.rs-verify-icon {
  display: flex;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-md);
  background: var(--rs-surface-subtle);
  color: var(--rs-ink);
}

.rs-recovery-codes {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-md);
  background: var(--rs-surface-subtle);
  text-align: center;
}

.rs-recovery-codes__list {
  color: var(--rs-text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.035em;
  line-height: 2;
  list-style: none;
}

.rs-recovery-codes__copy {
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--rs-brand);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.rs-auth-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-auth-method {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-md);
  background: var(--rs-surface);
  color: var(--rs-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.rs-auth-method:hover {
  border-color: var(--rs-border-strong);
  background: var(--rs-surface-subtle);
}

.rs-auth-method__icon {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rs-border-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--rs-muted);
}

.rs-auth-method__text {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.rs-auth-method__title {
  color: var(--rs-ink);
  font-size: 14px;
  font-weight: 650;
}

.rs-auth-method__desc {
  color: var(--rs-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rs-auth-method__arrow,
.rs-auth-method:hover .rs-auth-method__arrow {
  flex: 0 0 auto;
  color: var(--rs-faint);
}

.rs-required,
.form-group .col-xs-12 > *:not(label):not(input):not(.pf-c-input-group):not(#kc-form-options):not(#kc-form-buttons) {
  color: var(--rs-error);
}

.pf-c-input-group .pf-c-button.pf-m-control {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--rs-border-strong);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: var(--rs-muted);
}

.pf-c-input-group .pf-c-form-control {
  border-radius: 8px 0 0 8px;
}

.pf-c-input-group .pf-c-button.pf-m-control:hover {
  color: var(--rs-ink);
}

#kc-form-options {
  margin-bottom: 16px;
}

@media (max-width: 1040px) {
  .rs-split {
    grid-template-columns: minmax(380px, 0.82fr) minmax(500px, 1.18fr);
  }

  .rs-panel {
    padding: 48px;
  }

  .rs-panel__headline {
    font-size: 40px;
  }

  .rs-form-panel {
    padding: 42px;
  }
}

@media (max-width: 900px) {
  .rs-split,
  .rs-split--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-panel {
    display: none;
  }

  .rs-form-panel {
    min-height: 100vh;
    min-height: 100svh;
    padding: 48px 24px;
  }
}

@media (max-width: 560px) {
  .rs-form-panel {
    align-items: stretch;
    padding: 0;
    background: var(--rs-surface);
  }

  .rs-form-panel__inner,
  .rs-split--single .rs-form-panel__inner {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding: 34px 24px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .rs-form-panel__logo,
  .rs-split--single .rs-form-panel__logo {
    margin-bottom: 30px;
  }

  .rs-card__title {
    font-size: 25px;
  }

  .rs-btn-row {
    flex-direction: column;
  }
}

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