/* Sign-in page — animated dot matrix (blue/white on black) + auth flow */

.signin {
  position: relative; min-height: 100vh; overflow: hidden;
  background: #000; display: flex; flex-direction: column;
}
#dots { position: absolute; inset: 0; z-index: 0; display: block; }
.signin-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 32%, transparent 70%, rgba(0,0,0,0.7) 100%);
}

/* nav */
.signin-nav {
  position: fixed; top: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 1.8rem;
  padding: 0.55rem 0.7rem 0.55rem 1.3rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20,24,40,0.55); backdrop-filter: blur(10px);
}
.signin-nav .brand-logo { height: 30px; width: auto; display: block; }
.signin-nav-links { display: flex; gap: 1.6rem; }
.signin-nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; white-space: nowrap; transition: color 0.15s ease; }
.sn-login, .sn-signup { white-space: nowrap; }
.signin-nav-links a:hover { color: #fff; }
.sn-login {
  padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.84rem;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(31,31,31,0.6);
  color: rgba(255,255,255,0.85); cursor: pointer; transition: border-color 0.18s ease, color 0.18s ease;
}
.sn-login:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.sn-signup {
  padding: 0.5rem 1.2rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600; cursor: pointer; border: 0;
  color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 0 24px rgba(37,99,235,0.45);
}

/* content */
.signin-content {
  position: relative; z-index: 10; flex: 1;
  display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem 3rem;
}
.signin-card { width: 100%; max-width: 24rem; text-align: center; }
.signin-step { display: flex; flex-direction: column; gap: 1.4rem; opacity: 1; }
.signin-step.hide { display: none; }

.signin-title {
  font-family: "Space Grotesk", "Archivo", sans-serif; font-weight: 700;
  font-size: 3rem; line-height: 1.08; letter-spacing: -0.025em; color: #fff;
}
.signin-titleaccent { color: #60a5fa; }
.signin-subtitle { font-size: 1.3rem; color: rgba(255,255,255,0.6); font-weight: 300; margin-top: 0.3rem; }

.sn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #fff;
  border-radius: 999px; padding: 0.8rem 1rem; cursor: pointer; font-size: 0.95rem;
  backdrop-filter: blur(2px); transition: background 0.18s ease;
}
.sn-google:hover { background: rgba(255,255,255,0.1); }
.sn-google .g { font-weight: 700; color: #60a5fa; }

.sn-or { display: flex; align-items: center; gap: 1rem; }
.sn-or .ln { flex: 1; height: 1px; background: rgba(255,255,255,0.12); }
.sn-or span { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

.sn-email-wrap { position: relative; }
.sn-email-wrap input {
  width: 100%; box-sizing: border-box; text-align: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); color: #fff;
  border-radius: 999px; padding: 0.85rem 3rem; font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color 0.18s ease;
}
.sn-email-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.sn-email-wrap input:focus { outline: none; border-color: rgba(96,165,250,0.6); }
.sn-go {
  position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; font-size: 1.1rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sn-go:hover { transform: scale(1.06); box-shadow: 0 0 18px rgba(37,99,235,0.6); }

.sn-fine { font-size: 0.72rem; color: rgba(255,255,255,0.4); line-height: 1.6; }
.sn-fine a { color: rgba(255,255,255,0.55); }

/* code step */
.sn-code-box {
  display: flex; align-items: center; justify-content: center; gap: 0.2rem;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.9rem 1rem;
}
.sn-code-box input {
  width: 30px; text-align: center; font-size: 1.4rem; background: transparent; color: #fff;
  border: none; outline: none; caret-color: #60a5fa; font-family: var(--font-mono);
}
.sn-code-box .sep { color: rgba(255,255,255,0.2); font-size: 1.2rem; }
.sn-resend { color: rgba(255,255,255,0.5); font-size: 0.85rem; cursor: pointer; }
.sn-resend:hover { color: rgba(255,255,255,0.75); }
.sn-row { display: flex; gap: 0.7rem; }
.sn-back {
  width: 32%; border-radius: 999px; background: #fff; color: #000; font-weight: 600; border: 0;
  padding: 0.8rem; cursor: pointer;
}
.sn-continue {
  flex: 1; border-radius: 999px; padding: 0.8rem; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12); background: #111; color: rgba(255,255,255,0.5);
  transition: background 0.2s ease, color 0.2s ease;
}
.sn-continue.ready { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; border-color: transparent; }

/* success */
.sn-check {
  margin: 1.6rem auto; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(37,99,235,0.6);
  animation: sn-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes sn-pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sn-check svg { width: 32px; height: 32px; color: #fff; }
.sn-primary {
  width: 100%; border-radius: 999px; padding: 0.85rem; font-weight: 600; cursor: pointer; border: 0;
  background: #fff; color: #000;
}

/* ---- Passfuse: practice run of the employee sign-in ---- */
.signin-nav .kw-mark { width: 28px; height: 28px; filter: none; }
.signin-nav .kw-word { font-size: 1rem; }
a.sn-signup { display: inline-block; text-decoration: none; }
.signin-card { max-width: 25rem; }
.signin-title { font-size: 2.7rem; }

.kw-phone {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  padding: 1.1rem 1rem 1.05rem; border-radius: 22px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  background: rgba(10, 20, 48, 0.78); backdrop-filter: blur(4px);
  box-shadow: 0 0 44px rgba(37, 99, 235, 0.28);
}
.kw-phone-label {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #93c5fd;
}
.kw-phone-code {
  font-family: var(--font-mono); font-weight: 600; font-size: 2.3rem; line-height: 1.1;
  letter-spacing: 0.12em; color: #ffffff;
}
.kw-phone-bar { width: 62%; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.kw-phone-bar span {
  display: block; width: 100%; height: 100%; border-radius: 999px; transform-origin: left center;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  transition: transform 0.25s linear, background 0.3s ease;
}
.kw-phone-bar span.is-low { background: #f59e0b; }

.sn-code-box { background: rgba(0, 0, 0, 0.55); }
.sn-code-box:focus-within { border-color: rgba(96, 165, 250, 0.6); }
.sn-code-box.is-wrong { border-color: rgba(248, 113, 113, 0.75); animation: kw-shake 0.4s ease; }
@keyframes kw-shake {
  20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}
.sn-hint { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; min-height: 1.3em; }
.sn-hint.is-bad { color: #fca5a5; }

.kw-opened {
  list-style: none; margin: 0; padding: 0; text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; overflow: hidden;
  background: rgba(10, 20, 48, 0.78);
}
.kw-opened li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff; font-size: 0.95rem;
}
.kw-opened li:first-child { border-top: 0; }
.kw-opened em {
  font-style: normal; font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42); transition: color 0.3s ease;
}
.kw-opened li.is-done em { color: #6ee7a8; }
a.sn-primary { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.sn-again { border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; font-family: var(--font-body); }
.sn-again:hover { color: #ffffff; }

@media (prefers-reduced-motion: reduce) { .sn-code-box.is-wrong { animation: none; } }

@media (max-width: 560px) {
  .signin-nav-links { display: none; }
  .signin-title { font-size: 2rem; }
  .kw-phone-code { font-size: 1.9rem; }
}
