body {
  display: flex;
  flex-direction: column;
  background-image: url(images/signin.jpg);
  background-size: cover;
  background-position: center;
}

/* ── Container & Layout ─────────────────────────────── */
.container {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
}

/* ── Login Card ─────────────────────────────────────── */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 450px;
  animation: slideUp 0.35s ease;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px;
  box-sizing: border-box;
}
.card .return-link {
  margin-bottom: 24px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.card .logo {
  width: 100%;
  max-width: 150px;
  margin-bottom: 36px;
}

.icon-mfa {
  margin-bottom: 10px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

/* ── Device Login Badge ──────────────────────────────── */
.device-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.device-user-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

/* ── Device Verify ───────────────────────────────────── */
.device-code-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 1rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.device-code-label {
  margin-bottom: 0.5rem;
}

.device-code {
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent2);
  letter-spacing: 0.25em;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

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

@media only screen and (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }
  .card {
    padding: 24px 20px 20px;
  }
  .card h1 {
    font-size: 1.3rem;
  }

  .otp-inputs {
    gap: 4px;
  }

  .pass-box {
    max-width: none;
  }
}
