:root {
  --bs-primary: #013366;
  --bs-primary-rgb: 1, 51, 102;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e3ee;
  --accent: #f59e0b;
  --mint: #10b981;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.12), transparent 26rem),
    linear-gradient(135deg, #edf4f7 0%, #f8fafc 48%, #eef3f8 100%);
}

a {
  text-decoration: none;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(1, 51, 102, 0.98), rgba(1, 38, 77, 0.94)),
    #013366;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  min-height: calc(100vh - clamp(4rem, 10vw, 8rem));
  margin: 0 auto;
}

.showcase-content > .brand-lockup.mb-auto {
  margin-bottom: 0 !important;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.mobile-brand small,
.code-page .brand-lockup small {
  color: var(--muted);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #013366;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  font-weight: 800;
}

.showcase-copy {
  margin: clamp(3rem, 8vh, 5.5rem) 0 2rem;
}

.showcase-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.showcase-copy p {
  max-width: 560px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  line-height: 1.7;
}

.dashboard-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.preview-top {
  display: flex;
  gap: 0.5rem;
  height: 44px;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.preview-card,
.preview-chart {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
}

.preview-card {
  padding: 1rem;
}

.preview-card small,
.preview-card strong {
  display: block;
}

.preview-card small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.preview-card strong {
  margin-top: 0.4rem;
  font-size: 1.7rem;
}

.visual-tile {
  position: relative;
  min-height: 108px;
  overflow: hidden;
}

.visual-tile span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.visual-tile-a span:nth-child(1) {
  top: 22px;
  left: 22px;
  width: 38px;
  height: 38px;
}

.visual-tile-a span:nth-child(2) {
  top: 34px;
  right: 22px;
  width: 72px;
  height: 12px;
}

.visual-tile-a span:nth-child(3) {
  right: 22px;
  bottom: 28px;
  width: 118px;
  height: 12px;
  opacity: 0.42;
}

.visual-tile-b span:nth-child(1) {
  top: 26px;
  left: 22px;
  width: 22px;
  height: 22px;
}

.visual-tile-b span:nth-child(2) {
  top: 42px;
  left: 48px;
  width: calc(100% - 96px);
  height: 4px;
  opacity: 0.5;
}

.visual-tile-b span:nth-child(3) {
  right: 22px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.28));
}

.preview-chart {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 0.8rem;
  min-height: 150px;
  padding: 1rem;
}

.preview-chart i {
  flex: 1;
  border-radius: 999px 999px 0.35rem 0.35rem;
  background: linear-gradient(180deg, #6ee7b7, #f59e0b);
}

.auth-form-panel {
  position: relative;
  padding: 2rem;
}

.auth-card {
  width: min(100%, 480px);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.14);
  backdrop-filter: blur(16px);
}

.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-label {
  color: #344054;
  font-weight: 700;
}

.form-control {
  border-color: var(--line);
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.14);
}

.password-toggle {
  display: grid;
  place-items: center;
  min-width: 52px;
}

.password-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.password-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle.is-visible .password-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #00264d;
  --bs-btn-hover-border-color: #00264d;
  box-shadow: 0 14px 30px rgba(var(--bs-primary-rgb), 0.24);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #98a2b3;
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.login-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.code-page .auth-card {
  width: 100%;
}

.security-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(var(--bs-primary-rgb), 0.14), rgba(16, 185, 129, 0.14));
}

.security-mark span {
  width: 38px;
  height: 48px;
  border-radius: 20px 20px 14px 14px;
  background: linear-gradient(180deg, var(--bs-primary), var(--mint));
  clip-path: polygon(50% 0, 92% 18%, 84% 70%, 50% 100%, 16% 70%, 8% 18%);
}

.code-showcase .showcase-copy {
  margin-bottom: 1.5rem;
}

.verification-preview {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.verification-ring {
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 1rem;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 18%, transparent 19%),
    radial-gradient(circle, transparent 0 36%, rgba(255, 255, 255, 0.12) 37% 38%, transparent 39%),
    radial-gradient(circle, transparent 0 56%, rgba(255, 255, 255, 0.1) 57% 58%, transparent 59%),
    rgba(255, 255, 255, 0.08);
}

.verification-ring .security-mark {
  width: 108px;
  height: 108px;
  background: rgba(255, 255, 255, 0.16);
}

.verification-ring .security-mark span {
  background: linear-gradient(180deg, #ffffff, #9fd3ff);
}

.verification-lines {
  display: grid;
  gap: 0.75rem;
}

.verification-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.verification-lines span:nth-child(2) {
  width: 76%;
}

.verification-lines span:nth-child(3) {
  width: 54%;
}

.back-login-link {
  position: absolute;
  bottom: 2rem;
  color: var(--bs-primary);
}

.code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.code-inputs .form-control {
  height: 64px;
  padding: 0;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 575.98px) {
  .auth-form-panel {
    padding: 1rem;
  }

  .auth-card {
    border-radius: 1.25rem;
  }

  .code-inputs {
    grid-template-columns: repeat(3, 1fr);
  }

  .back-login-link {
    position: static;
    display: inline-flex;
    margin-top: 1.25rem;
  }
}
