@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap";

:root {
  --color-bg: #000000;
  --color-card: #171717;
  --color-card-border: #2A2A2A;
  --color-input: #202020;
  --color-input-border: #303030;
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #A3A3A3;
  --color-placeholder: #737373;
  --color-btn-bg: #F5F5F5;
  --color-btn-text: #111111;
  --color-error: #EF4444;
  --color-success: #22C55E;
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-btn: 8px;
  --transition-fast: .22s cubic-bezier(.16, 1, .3, 1);
}

[data-theme="light"],
.theme-light {
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-card-border: #E2E8F0;
  --color-input: #FFFFFF;
  --color-input-border: #CBD5E1;
  --color-text-primary: #0F172A;
  --color-text-secondary: #64748B;
  --color-placeholder: #94A3B8;
  --color-btn-bg: #0F172A;
  --color-btn-text: #FFFFFF;
  --color-error: #DC2626;
  --color-success: #16A34A;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}

.sso-portal-root {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  transition: background-color .3s ease, color .3s ease;
}

/* ==========================================================================
   Animated Background Canvas (Chromatic Light Ribbon for Mobile View)
   ========================================================================== */
.animated-background-canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  transition: opacity .35s ease;
}

@media (min-width: 992px) {
  .animated-background-canvas {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* ==========================================================================
   Screen 1: Centered Foreground & Card
   ========================================================================== */
.sso-portal-foreground {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 8vh, 84px) 16px 32px;
  box-sizing: border-box;
  width: 100%;
}

.authentication-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.authentication-card {
  width: 100%;
  background: rgba(6, 18, 42, 0.72);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(0, 140, 255, 0.38);
  border-radius: 24px;
  padding: 30px 28px 28px;
  box-shadow: 0 25px 60px -10px rgba(0, 4, 16, 0.85), 0 0 35px rgba(0, 110, 255, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: height var(--transition-fast), transform var(--transition-fast);
  will-change: transform;
  box-sizing: border-box;
}

[data-theme="light"] .authentication-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 102, 255, 0.2);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1), 0 0 25px rgba(0, 102, 255, 0.08);
}

/* Card Brand Header Inside Card */
.card-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-brand-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 140, 255, 0.25);
  border-radius: 10px;
}

.card-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

[data-theme="light"] .card-brand-title {
  color: #0F172A;
}

.card-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: #00A3FF;
  letter-spacing: 0.02em;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.segmented-control {
  display: flex;
  width: 100%;
  background-color: rgba(10, 22, 48, 0.6);
  border: 1px solid rgba(0, 110, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
  box-sizing: border-box;
}

[data-theme="light"] .segmented-control {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.segmented-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  color: #8E9DB2;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.segmented-btn:hover {
  color: #FFFFFF;
}

.segmented-btn.is-active {
  background: linear-gradient(90deg, #0062FF, #00A3FF);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.45);
}

[data-theme="light"] .segmented-btn.is-active {
  background: linear-gradient(90deg, #0062FF, #00A3FF);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.card-form-container {
  position: relative;
}

.auth-form-view {
  display: flex;
  flex-direction: column;
}

.fade-in-view {
  animation: fadeInForm .34s cubic-bezier(.16, 1, .3, 1) forwards;
  will-change: opacity, transform;
}

@keyframes fadeInForm {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-heading-block {
  margin-bottom: 18px;
}

.form-main-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -.015em;
  line-height: 1.25;
}

.form-subtitle {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.auth-inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: .01em;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-field-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-sizing: border-box;
}

[data-theme="light"] .form-field-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0F172A;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-container.has-left-icon .form-field-input {
  padding-left: 40px;
  height: 44px;
  border-radius: 12px;
  background: rgba(12, 26, 56, 0.7);
  border: 1px solid rgba(0, 110, 255, 0.25);
  color: #FFFFFF;
}

[data-theme="light"] .input-container.has-left-icon .form-field-input {
  background: #FFFFFF;
  border-color: rgba(0, 102, 255, 0.25);
  color: #0F172A;
}

.input-leading-icon {
  position: absolute;
  left: 14px;
  color: #647B9B;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.input-container.has-left-icon:focus-within .input-leading-icon {
  color: #00A3FF;
}

.form-field-input::placeholder {
  color: #647B9B;
  font-size: 13px;
}

.form-field-input:focus {
  background: rgba(15, 32, 70, 0.85);
  border-color: #00A3FF;
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.25);
}

[data-theme="light"] .form-field-input:focus {
  background: #ffffff;
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.form-field-group.has-error .form-field-input {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.06);
}

.form-field-group.has-error .form-field-input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.field-error-text {
  font-size: 11px;
  color: var(--color-error);
  padding-left: 2px;
  line-height: 1.2;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-input-combined {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.country-dial-select {
  width: 90px;
  height: 42px;
  padding: 0 8px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.country-dial-select option {
  background-color: #1a1a20;
  color: #fff;
}

[data-theme="light"] .country-dial-select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0F172A;
}

[data-theme="light"] .country-dial-select option {
  background-color: #ffffff;
  color: #0F172A;
}

.country-dial-select:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

.phone-number-input {
  flex: 1;
}

.password-input-container {
  position: relative;
}

.password-input {
  padding-right: 38px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color .15s ease;
}

.password-toggle-btn:hover {
  color: var(--color-text-primary);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.6);
}

.primary-cta-button {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 235, 240, 0.88));
  color: var(--color-btn-text);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-btn);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.22), 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px #fff;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

[data-theme="light"] .primary-cta-button {
  background: linear-gradient(180deg, #0F172A, #1E293B);
  color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.primary-cta-button:hover {
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px #fff;
  transform: translateY(-1px);
}

[data-theme="light"] .primary-cta-button:hover {
  background: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.primary-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.2);
}

.primary-cta-button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.primary-cta-button:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.button-loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(17, 17, 17, 0.25);
  border-top-color: #111;
  border-radius: 50%;
  animation: spinLoader .65s linear infinite;
  display: inline-block;
}

[data-theme="light"] .button-loader-spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

.form-footer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.form-footer-hint-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.primary-cta-button.cta-electric-blue {
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066FF, #00A3FF);
  border: none;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.45);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.primary-cta-button.cta-electric-blue:hover {
  background: linear-gradient(90deg, #0055DD, #0090EE);
  box-shadow: 0 6px 26px rgba(0, 102, 255, 0.65);
  transform: translateY(-1px);
}

.cta-arrow-icon {
  transition: transform 0.2s ease;
}

.primary-cta-button.cta-electric-blue:hover .cta-arrow-icon {
  transform: translateX(3px);
}

/* Remember me & Options Row */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
}

.remember-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8E9DB2;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  display: none;
}

.custom-checkbox-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 110, 255, 0.35);
  background: rgba(12, 26, 56, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.check-tick-svg {
  display: none;
  color: #FFFFFF;
}

.custom-checkbox:checked + .custom-checkbox-box {
  background: #0066FF;
  border-color: #0066FF;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
}

.custom-checkbox:checked + .custom-checkbox-box .check-tick-svg {
  display: block;
}

.forgot-password-link {
  color: #00A3FF;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.forgot-password-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.link-highlight {
  color: #00A3FF !important;
  font-weight: 600;
}

.text-link-button:hover {
  text-decoration: underline;
  opacity: .85;
}

.step2-slide-up {
  animation: step2Slide .28s cubic-bezier(.16, 1, .3, 1);
}

@keyframes step2Slide {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Account verified chip */
.account-verified-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 12px;
  margin-bottom: 2px;
}

[data-theme="light"] .account-verified-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.account-chip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.account-avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.account-summary-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.account-identifier-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.account-sub-text {
  font-size: 10.5px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.verified-icon-svg {
  flex-shrink: 0;
  margin-left: 2px;
}

.change-account-action-btn {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 6px;
  text-decoration: none;
}

.change-account-action-btn:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* OTP 6-box input */
.otp-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 2px;
}

.otp-inputs-grid {
  display: flex;
  justify-content: space-between;
  gap: clamp(4px, 1.6vw, 8px);
  width: 100%;
}

.otp-digit-box {
  flex: 1;
  min-width: 0;
  max-width: 48px;
  height: clamp(38px, 10vw, 48px);
  text-align: center;
  font-family: var(--font-family);
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

[data-theme="light"] .otp-digit-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0F172A;
}

.otp-digit-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.otp-digit-box:focus {
  border-color: rgba(0, 229, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25), 0 2px 10px rgba(0, 229, 255, 0.2);
  transform: translateY(-1px);
}

[data-theme="light"] .otp-digit-box:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.otp-timer-count {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Alerts */
.chalk-alert {
  padding: 10px 12px;
  border-radius: var(--radius-input);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.chalk-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

[data-theme="light"] .chalk-alert-error {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #B91C1C;
}

.chalk-alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86EFAC;
}

[data-theme="light"] .chalk-alert-success {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D;
}

/* Portal Footer */
.portal-minimal-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.footer-links-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-mini-link {
  font-size: 11px;
  color: #666;
  text-decoration: none;
  transition: color .15s ease;
}

.footer-mini-link:hover {
  color: #999;
}

[data-theme="light"] .footer-mini-link {
  color: #94A3B8;
}

[data-theme="light"] .footer-mini-link:hover {
  color: #475569;
}

.footer-sep {
  font-size: 9px;
  color: #444;
}

[data-theme="light"] .footer-sep {
  color: #CBD5E1;
}

.footer-copyright {
  font-size: 10.5px;
  color: #555;
  letter-spacing: .02em;
}

[data-theme="light"] .footer-copyright {
  color: #94A3B8;
}

/* Floating Dock */
.screen-switcher-dock {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 999;
}

.screen-switcher-capsule {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(14, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all .25s ease;
}

[data-theme="light"] .screen-switcher-capsule {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.dock-button-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.dock-separator {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 3px;
  flex-shrink: 0;
}

[data-theme="light"] .dock-separator {
  background: rgba(0, 0, 0, 0.12);
}

.screen-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  color: #8e8ea0;
  font-family: var(--font-family);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}

[data-theme="light"] .screen-switcher-btn {
  color: #64748B;
}

.screen-switcher-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .screen-switcher-btn:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.04);
}

.screen-switcher-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(124, 77, 255, 0.22));
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

[data-theme="light"] .screen-switcher-btn.is-active {
  color: #0284c7;
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
}

.theme-toggle-icon {
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), filter .25s ease;
}

.sun-icon {
  color: #fbbf24;
}

.theme-toggle-btn:hover .sun-icon {
  transform: rotate(45deg) scale(1.15);
  filter: drop-shadow(0 0 7px #FBBF24);
}

.moon-icon {
  color: #60A5FA;
}

.theme-toggle-btn:hover .moon-icon {
  transform: rotate(-15deg) scale(1.15);
  filter: drop-shadow(0 0 7px #60A5FA);
}

/* ==========================================================================
   Screen 2: Split Showcase Layout (Web View)
   ========================================================================== */
.screen2-main-wrapper {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background-color: #06060A;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

[data-theme="light"] .screen2-main-wrapper {
  background-color: #F8FAFC;
}

.screen2-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 2;
  background-color: #060b18;
  background: #060b18;
}

[data-theme="light"] .screen2-split-layout {
  background-color: #F8FAFC;
  background: #F8FAFC;
}

.screen2-left-showcase {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  border-right: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .screen2-left-showcase {
  background: transparent;
  border-right: none;
}

.screen2-right-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(74px, 10vh, 90px) 24px 36px;
  background-color: #0b1836;
  background: #0b1836;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

[data-theme="light"] .screen2-right-auth {
  background-color: #F1F5F9;
  background: #F1F5F9;
}

.screen2-auth-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.screen2-footer {
  margin-top: 20px;
}

/* Slideshow Panel Root (Screen 2 Left) */
.slideshow-panel-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.slideshow-ambient-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .35;
  transition: opacity .5s ease;
}

.aura-cyan {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #00E5FF 0%, transparent 70%);
  top: 10%;
  left: -5%;
}

[data-theme="light"] .aura-cyan {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
}

.aura-purple {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #7C4DFF 0%, transparent 70%);
  bottom: 5%;
  right: -5%;
}

[data-theme="light"] .aura-purple {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.slideshow-grid-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 229, 255, 0.28) 1.5px, transparent 1.5px);
  background-size: 42px 42px, 42px 42px, 42px 42px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 40%, transparent 95%);
  pointer-events: none;
}

[data-theme="light"] .slideshow-grid-overlay {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(14, 165, 233, 0.25) 1.5px, transparent 1.5px);
}

.slideshow-top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.slideshow-brand-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .slideshow-brand-logo-mark {
  background: rgba(255, 255, 255, 0.9);
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.slideshow-brand-details {
  display: flex;
  flex-direction: column;
}

.slideshow-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

[data-theme="light"] .slideshow-brand-name {
  color: #0F172A;
}

.slideshow-brand-edition {
  font-size: 10.5px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Showcase Center Stage: Centered Icon & Concentric Cyber Orbit Rings
   ========================================================================== */
.slideshow-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  position: relative;
  z-index: 2;
  margin: auto 0;
  width: 100%;
}

.slideshow-graphic-container {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-21px, 84px);
}

/* Concentric Cyber Orbit Rings Centered on Hologram Icon */
.showcase-bg-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.auth-ring {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
}

.showcase-bg-rings .auth-ring-1 {
  width: 240px;
  height: 240px;
  border: 1.5px dashed rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.14);
  animation: ringRotateClockwise 60s linear infinite;
}

[data-theme="light"] .showcase-bg-rings .auth-ring-1 {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.showcase-bg-rings .auth-ring-2 {
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 35px rgba(124, 77, 255, 0.08);
  position: relative;
}

[data-theme="light"] .showcase-bg-rings .auth-ring-2 {
  border-color: rgba(15, 23, 42, 0.1);
}

.showcase-bg-rings .auth-ring-3 {
  width: 480px;
  height: 480px;
  border: 1.5px dashed rgba(124, 77, 255, 0.28);
  animation: ringRotateCounter 90s linear infinite;
}

[data-theme="light"] .showcase-bg-rings .auth-ring-3 {
  border-color: rgba(124, 58, 237, 0.32);
}

/* Orbiting Satellites on Rings */
.ring-orbit-satellite {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.satellite-cyan {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #00E5FF;
  box-shadow: 0 0 12px #00E5FF, 0 0 24px rgba(0, 229, 255, 0.7);
}

.satellite-purple {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #7C4DFF;
  box-shadow: 0 0 12px #7C4DFF, 0 0 24px rgba(124, 77, 255, 0.7);
}

/* Compass Ticks on Middle Ring */
.ring-notch {
  position: absolute;
  width: 8px;
  height: 2px;
  background: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

.notch-n {
  top: -1px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}

.notch-s {
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}

.notch-e {
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
}

.notch-w {
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes ringRotateClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ringRotateCounter {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* Center Glow Core Behind Hologram Icon */
.showcase-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.22) 0%, rgba(124, 77, 255, 0.16) 45%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  border-radius: 50%;
  z-index: 1;
  animation: cardGlowPulse 8s ease-in-out infinite alternate;
}

[data-theme="light"] .showcase-icon-glow {
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.2) 0%, rgba(124, 58, 237, 0.12) 45%, transparent 70%);
}

@keyframes cardGlowPulse {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Micro Constellation Security Nodes on Showcase Panel */
.showcase-bg-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.auth-node-point {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 14px #00E5FF, 0 0 28px rgba(0, 229, 255, 0.45);
}

.node-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.8);
  animation: nodePing 3.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.auth-node-point.node-1 {
  top: 14%;
  right: 18%;
}

.auth-node-point.node-2 {
  bottom: 18%;
  right: 22%;
  background: #7C4DFF;
  box-shadow: 0 0 14px #7C4DFF, 0 0 28px rgba(124, 77, 255, 0.45);
}

.auth-node-point.node-2 .node-pulse {
  border-color: rgba(124, 77, 255, 0.8);
  animation-delay: 1.6s;
}

.auth-node-point.node-3 {
  top: 26%;
  left: 14%;
  background: #00FF66;
  box-shadow: 0 0 14px #00FF66, 0 0 28px rgba(0, 255, 102, 0.45);
}

.auth-node-point.node-3 .node-pulse {
  border-color: rgba(0, 255, 102, 0.8);
  animation-delay: 0.9s;
}

.auth-node-point.node-4 {
  bottom: 24%;
  left: 16%;
  background: #00E5FF;
  box-shadow: 0 0 14px #00E5FF;
  animation-delay: 2.3s;
}

[data-theme="light"] .auth-node-point {
  background: #0284C7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
}

[data-theme="light"] .auth-node-point.node-2 {
  background: #7C3AED;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
}

[data-theme="light"] .auth-node-point.node-3 {
  background: #16A34A;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
}

@keyframes nodePing {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.slideshow-graphic-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.slide-graphic-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.slide-graphic-item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.futuristic-hologram {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  z-index: 3;
}

.holo-shield-icon,
.holo-network-center,
.holo-quantum-icon {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.holo-ring-outer {
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(0, 229, 255, 0.35);
  animation: ringSpin 22s linear infinite;
}

[data-theme="light"] .holo-ring-outer {
  border-color: rgba(2, 132, 199, 0.4);
}

.holo-ring-middle {
  width: 106px;
  height: 106px;
  border: 1px solid rgba(124, 77, 255, 0.35);
  animation: ringSpinRev 16s linear infinite;
}

[data-theme="light"] .holo-ring-middle {
  border-color: rgba(124, 58, 237, 0.4);
}

.spin-slow {
  animation: ringSpin 28s linear infinite;
}

.pulse-anim {
  animation: pulseHolo 3s ease-in-out infinite;
}

@keyframes pulseHolo {

  0%,
  100% {
    transform: scale(1);
    opacity: .7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes ringSpin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes ringSpinRev {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0);
  }
}

.holo-orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 10px #00E5FF;
}

.dot-1 {
  top: 10px;
  left: 20px;
  animation: dotFloat 3s ease-in-out infinite;
}

.dot-2 {
  bottom: 12px;
  right: 18px;
  animation: dotFloat 4s ease-in-out infinite reverse;
}

.dot-3 {
  top: 24px;
  right: 14px;
  animation: dotFloat 3.5s ease-in-out infinite;
}

.dot-4 {
  bottom: 20px;
  left: 18px;
  animation: dotFloat 4.2s ease-in-out infinite reverse;
}

@keyframes dotFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.slideshow-floating-chip,
.showcase-bg-nodes,
.auth-node-point {
  display: none !important;
}

.slideshow-text-block {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 72px; /* Fixed height for 1.5 lines headline, prevents layout jump */
  margin-top: 150px; /* Positioned cleanly below the orbit rings */
  transform: translate(-21px, 42px); /* Dropped 1 box down together with the circle */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-text-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-align: center;
  margin: 0;
}

.slide-text-item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.slideshow-tag-pill,
.slideshow-subparagraph {
  display: none !important;
}

.slideshow-headline {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-align: center;
  margin: 0;
}

[data-theme="light"] .slideshow-headline {
  color: #0F172A;
}

.text-gradient-cyan-violet {
  background: linear-gradient(135deg, #00E5FF, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .text-gradient-cyan-violet {
  background: linear-gradient(135deg, #0284C7, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slideshow-subparagraph {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94A3B8;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

[data-theme="light"] .slideshow-subparagraph {
  color: #475569;
}

.slideshow-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

[data-theme="light"] .slideshow-bottom-bar {
  border-top-color: #E2E8F0;
}

.slideshow-navigation-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slideshow-dots-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slideshow-dot-btn {
  width: 24px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .slideshow-dot-btn {
  background: rgba(15, 23, 42, 0.12);
}

.slideshow-dot-btn.is-active {
  width: 42px;
  background: linear-gradient(90deg, #00E5FF, #7C4DFF);
}

[data-theme="light"] .slideshow-dot-btn.is-active {
  background: linear-gradient(90deg, #0284C7, #7C3AED);
}

.slideshow-arrow-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slideshow-nav-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

[data-theme="light"] .slideshow-nav-arrow {
  background: rgba(255, 255, 255, 0.9);
  border-color: #CBD5E1;
  color: #0F172A;
}

.slideshow-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .slideshow-nav-arrow:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
}

.slideshow-metric-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.slideshow-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

[data-theme="light"] .slideshow-metric-value {
  color: #0F172A;
}

.slideshow-metric-label {
  font-size: 10px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Responsive Architecture: Screen 1 on Mobile (< 992px), Screen 2 on Web View (>= 992px)
   ========================================================================== */

/* Web View (>= 992px): Split Showcase Layout (Screen 2) */
@media (min-width: 992px) {
  .screen2-main-wrapper {
    display: block !important;
    background-color: #06060A;
  }

  [data-theme="light"] .screen2-main-wrapper {
    background-color: #F8FAFC;
  }

  .screen2-split-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  .screen2-left-showcase {
    display: flex !important;
  }

  .screen2-right-auth {
    display: flex !important;
    background-color: #06060A !important;
    background: #06060A !important;
  }

  [data-theme="light"] .screen2-right-auth {
    background-color: #F8FAFC !important;
    background: #F8FAFC !important;
  }
}

/* Tablet & Intermediate Viewports (992px - 1080px) */
@media (max-width: 1080px) and (min-width: 992px) {
  .screen2-split-layout {
    grid-template-columns: 1fr 1fr !important;
  }

  .slideshow-panel-root {
    padding: 32px 28px;
  }

  .slideshow-headline {
    font-size: 22px;
  }

  .slideshow-graphic-frame {
    height: 160px;
  }
}

/* Mobile View (< 992px): Screen 1 (Centered Card + Full Animated Chromatic Ribbon) */
@media (max-width: 991px) {

  /* 1. Animated Chromatic Ribbon Canvas is active and visible on mobile */
  .animated-background-canvas {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 0 !important;
  }

  /* Hide rightside desktop decorations on mobile */
  .auth-bg-decorations {
    display: none !important;
  }

  /* 2. All outer wrappers MUST be completely transparent so the canvas ribbon shines through */
  html,
  body,
  .sso-portal-root,
  .screen2-main-wrapper,
  [data-theme="light"] .screen2-main-wrapper,
  .screen2-split-layout,
  .screen2-right-auth,
  [data-theme="light"] .screen2-right-auth {
    background: transparent !important;
    background-color: transparent !important;
  }

  /* 3. Hide Enterprise Showcase sidebar on mobile */
  .screen2-left-showcase {
    display: none !important;
  }

  /* 4. Split layout becomes centered single column */
  .screen2-split-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* 5. Right auth container centers the glassmorphic card on mobile viewport */
  .screen2-right-auth {
    padding: clamp(60px, 8vh, 84px) 16px 32px !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .screen2-auth-inner {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .authentication-card-wrapper {
    max-width: 380px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .screen-switcher-dock {
    top: 10px;
    right: 12px;
  }

  .theme-toggle-btn {
    padding: 5px 8px;
  }

  .authentication-card-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .authentication-card {
    padding: 22px 18px 24px;
    border-radius: 14px;
  }

  .form-main-title {
    font-size: 19px;
  }

  .country-dial-select {
    width: 78px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .screen-switcher-dock {
    top: 8px;
    right: 8px;
  }

  .theme-toggle-btn {
    padding: 4px 6px;
  }

  .authentication-card {
    padding: 18px 12px 20px;
    border-radius: 12px;
  }

  .form-main-title {
    font-size: 17px;
  }

  .form-subtitle {
    font-size: 11px;
  }

  .country-dial-select {
    width: 72px;
    font-size: 10.5px;
    padding: 0 4px;
  }

  .form-field-input {
    font-size: 12px;
  }

  .segmented-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Legal & Help Documentation Views (Terms, Privacy, Help)
   ========================================================================== */
.screen2-auth-inner:has(.legal-portal-view) {
  max-width: 480px;
}

.authentication-card:has(.legal-portal-view) {
  padding: 24px 22px;
}

.legal-portal-view {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.legal-tab-bar {
  margin-bottom: 16px;
}

.legal-header {
  margin-bottom: 16px;
  text-align: left;
}

.legal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.legal-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.legal-scroll-area {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 102, 255, 0.4) transparent;
}

.legal-scroll-area::-webkit-scrollbar {
  width: 5px;
}

.legal-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.legal-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.35);
  border-radius: 4px;
}

.legal-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 15px;
  transition: all 0.2s ease;
}

[data-theme="light"] .legal-block {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.legal-block-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #38BDF8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .legal-block-title {
  color: #0284C7;
}

.legal-block-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.legal-list {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
  list-style-type: disc;
}

.legal-list li {
  margin-bottom: 4px;
}

.legal-back-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .legal-back-nav {
  border-top-color: #E2E8F0;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00A3FF;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

[data-theme="light"] .legal-back-btn {
  color: #0062FF;
}

.legal-back-btn:hover {
  background: rgba(0, 102, 255, 0.08);
  transform: translateX(-2px);
}