.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.landing-root {
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  padding: 1.5rem 1rem 3rem;
  box-sizing: border-box;
  width: 100%;
}

.landing-card {
  width: 100%;
  overflow-x: hidden;
  max-width: 800px;
  /* background: linear-gradient(180deg,#ffffff 0%,#fafbfc 100%); */
  border: 1px solid #e5e9ee;
  border-radius: 18px;
  padding: 2rem 1.75rem 2.5rem;
  box-sizing: border-box;
}

.landing-flex {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Desktop layout */
@media (min-width: 1024px) {
  .landing-flex {
    display: grid;
    grid-template-columns: minmax(520px, 640px) minmax(300px, 420px);
    align-items: start;
    grid-gap: 3.5rem;
    gap: 3.5rem;
  }
  .landing-left { padding-right: .5rem; }
  .landing-right { padding-top: .35rem; }
}

.landing-left h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: .5px;
}

.landing-text p {
  margin: 0 0 1rem;
  line-height: 1.5;
  font-size: 1rem;
  max-width: 64ch;
}
.landing-text p:last-child { margin-bottom: 0; }

.actions-row {
  margin-top: 1.3rem;
}

.otp-grid {
  display: grid;
  grid-template-columns: -webkit-max-content 1fr auto;
  grid-template-columns: max-content 1fr auto;
  align-items: center;
  grid-gap: .55rem .9rem;
  gap: .55rem .9rem;
  max-width: 560px;
  margin-top: 1.4rem;
  padding: 1rem 1rem 1.15rem;
  /* background: #ffffff;
  border: 1px solid #e2e7ec;
  border-radius: 14px;
  box-shadow: 0 2px 10px -4px rgba(0,0,0,0.08); */
}

.otp-label {
  font-weight: 600;
  white-space: nowrap;
  font-size: .95rem;
  color: #2f3945;
  text-align: center;
}

.placeholder { visibility: hidden; }

.timer-line {
  font-size: .85rem;
  color: #55606d;
}
.timer-line .time {
  color: #c62828;
  font-weight: 600;
}

.copy-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}
.copy-pointer {
  position: absolute;
  top: 120%;
  /* left: 50%; */
  transform: translate(-50%, 8px);
  width: 56px; /* bigger */
  pointer-events: none;
  animation: fingerBounce 1.8s ease-in-out infinite;
}
.pointer-label {
  position: absolute;
  top: calc(100% + 64px); /* finger width + spacing */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #444;
  pointer-events: none;
  font-weight: 600;
}
.mobile-preview {
  max-width: 240px;
  margin: 0 auto 1.5rem;
}

.mobile-img {
  width: 100%;
  border-radius: 22px;
  /* box-shadow: 0 8px 22px -10px rgba(20,32,45,0.20); */
}

.mobile-finger-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-finger {
width: 90px;
height: auto;
animation: fingerBounce 2s ease-in-out infinite;
pointer-events: none;
}

.mobile-pointer-label {
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: #2d3b4a;
  font-weight: 600;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .landing-flex {
    display: grid;
    grid-template-columns: minmax(620px, 780px) minmax(220px, 300px);
    grid-gap: 3rem 3.25rem;
    gap: 3rem 3.25rem;
    align-items: start;
  }
  .landing-left h2 {
    font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.3rem);
  }
  .landing-text p {
    font-size: 1.05rem;
    max-width: 70ch;
  }
}
@keyframes fingerBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
/* Ensure header/body content aligns on the same vertical rhythm */
.landing-header,
.landing-body,
.otp-card{
  margin-inline:left;
  width:80%;
  text-align: center;
}
/* Fill horizontal space cleanly */
/* display:flex; */
.otp-row{
  display:flex;
  grid-template-columns:-webkit-max-content 1fr -webkit-max-content;
  grid-template-columns:max-content 1fr max-content;
  gap:1rem;
  align-items:center;
  justify-content: center;
  text-align: center;
}
.otp-label{
  font-weight:700;
  white-space:nowrap;
  color:var(--ink);
}
.otp-code{
  font-feature-settings:"tnum";
  font-variant-numeric:tabular-nums;
  font-weight:200;
  font-size:clamp(1.6rem, 1.2rem + 2.1vw, 2.5rem);
  letter-spacing:.06em;
  color:var(--ink);
  /* overflow-wrap:anywhere; */
}
/* ====== Timer (desktop trimmed down; mobile unchanged) ====== */
.timer-row{
  display:grid;
  grid-template-columns:-webkit-max-content 1fr;
  grid-template-columns:max-content 1fr;
  align-items:center;
  grid-gap:.8rem;
  gap:.8rem;
  margin-top:.6rem;
}

/* default (mobile/tablet) */
.timer-badge{
  display:inline-block;
  font-feature-settings:"tnum";
  font-variant-numeric:tabular-nums;
  background:rgba(198,40,40,.08);
  border:1px solid rgba(198,40,40,.35);
  color:var(--accent);
  border-radius:999px;
  padding:.28rem .65rem;
  font-weight:700;
  font-size:.9rem;
}
.timer-progress{
  height:10px;
  border-radius:999px;
  background:rgba(23, 2, 2, 0.08);
  overflow:hidden;
}
.timer-bar{
  height:100%;
  /* background:linear-gradient(90deg, var(--accent), var(--success)); */
  background: linear-gradient(.25turn, #C62626)

}

/* desktop reduce visual weight */
@media (min-width:1024px){
  .timer-badge{
    padding:.2rem .5rem;
    font-size:.82rem;
    border-width:1px;
  }
  .timer-progress{ height:6px; } /* slimmer bar */
}

/* ====== Copied toast ====== */
.copied-toast{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:.45rem .7rem;
  border-radius:10px;
  background:rgba(12,148,74,.12);
  border:1px solid rgba(12,148,74,.35);
  color:var(--success);
  font-weight:700;
  font-size:.86rem;
}

/* ====== Motion safety ====== */
@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important;}
} 

.green {
  color: green;
  font-weight: bold;
}

.red {
  color: red;
}

/* prelogin.css */

/* Root container now top-aligned (no vertical centering) */
.prelogin-root.single {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
    padding: 2.2rem 1.25rem 2.2rem;
    align-items: center;          /* center horizontally */
    justify-content: flex-start;  /* stay at top */
    box-sizing: border-box;
    background: linear-gradient(135deg,#f5f8fb 0%,#eef2f6 55%,#e8edf2 100%);
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  }
  
  /* Stack (no forced vertical centering) */
  .prelogin-stack {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 2rem;
  }
  
  .prelogin-stack.tight {
    gap: 1.55rem;
  }
  
  /* Branding */
  .brand-top {
    text-align: center;
    padding: 0;
  }
  
  .tagline {
    margin: 0 0 .55rem;
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d32f2f;
    font-weight: 600;
  }
  
  .hero {
    margin: 0 0 .65rem;
    font-size: clamp(2rem,1.5rem + 1.4vw,2.55rem);
    line-height: 1.12;
    color: #1f2d3a;
    font-weight: 700;
  }
  
  .hero-desc {
    margin: 0;
    font-size: .98rem;
    line-height: 1.5;
    color: #43505d;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Card wrapper */
  .welcome-block {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
  }
  
  /* Auth card */
  .auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #dfe5eb;
    border-radius: 20px;
    padding: 1.85rem 1.7rem 2.1rem;
    position: relative;
    box-shadow: 0 8px 26px -14px rgba(0,0,0,0.22);
    text-align: center;
    box-sizing: border-box;
  }
  
  .accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg,#d32f2f,#d32f2f);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  
  .auth-title {
    margin: .25rem 0 .85rem;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 600;
    color: #1f2d3a;
  }
  
  .auth-msg {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    color: #45525f;
  }
  
  .meta-note {
    margin-top: 1.35rem;
    font-size: .62rem;
    letter-spacing: .55px;
    /* text-transform: uppercase; */
    line-height: 1.25;
    color: #5c6875;
  }
  
  /* Button interaction */
  .auth-card .sdf-button,
  .auth-card button {
    transition: transform .16s ease, box-shadow .16s ease;
  }
  .auth-card .sdf-button:active,
  .auth-card button:active {
    transform: translateY(1px);
  }
  
  /* Compact small-height displays */
  @media (max-height: 680px) {
    .prelogin-root.single {
      padding-top: 1.6rem;
      padding-bottom: 1.4rem;
    }
    .prelogin-stack.tight {
      gap: 1.1rem;
    }
    .auth-card {
      padding: 1.6rem 1.5rem 1.85rem;
    }
  }
  
  /* Wider screens */
  @media (min-width: 900px) {
    .prelogin-root.single {
      padding: 2.6rem 2.2rem 2.4rem;
    }
    .auth-card {
      max-width: 460px;
      box-shadow: 0 10px 30px -16px rgba(0,0,0,0.24);
    }
  }
  
  /* Large desktop */
  @media (min-width: 1300px) {
    .prelogin-stack {
      max-width: 820px;
    }
    .auth-card {
      max-width: 480px;
    }
    .hero {
      font-size: clamp(2.1rem,1.4rem + 1.8vw,2.8rem);
    }
  }
  
  /* High contrast */
  @media (prefers-contrast: more) {
    .auth-card {
      border-color: #b9c2ca;
      box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px #d32f2f;
    }
  }
  
  /* Motion reduction */
  @media (prefers-reduced-motion: reduce) {
    .auth-card .sdf-button,
    .auth-card button {
      transition: none;
    }
  }

  .image-container img {
    width: 80%;
    max-width: 400px;
    margin-bottom: 1rem;
  }
  
  @media (max-width: 768px) {
    .image-container img {
        width: 90%; /* Adjust for smaller screens */
    }
  }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

