@font-face{font-family:Poppins;src:url("/assets/poppins_bold.ttf");font-weight:700;font-display:swap}
@font-face {
  font-family: Poppins;
  font-display: swap;
  src: url("/assets/poppins_regular.ttf");
}
@font-face {
  font-family: Poppins;
  font-display: swap;
  src: url("/assets/poppins_semibold.ttf");
  font-weight: 600;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f7f5;
  color: #14141a;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
header {
  padding: 24px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid #e4e7f0;
}
.brand {
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #14141a;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 44px;
}
.brand span {
  font-size: 14px;
  letter-spacing: 1px;
  color: #687189;
}
nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
a {
  color: #1a4fff;
}
nav a {
  font-size: 14px;
  text-decoration: none;
}
main {
  max-width: 1180px;
  margin: 44px auto;
  padding: 0 24px;
  min-height: 65vh;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 12px 0 18px;
}
h2 {
  font-size: 24px;
  margin: 0 0 18px;
}
h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
p {
  line-height: 1.7;
}
.eyebrow {
  color: #1a4fff;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 14px;
}
.muted,
small {
  color: #647087;
  font-size: 14px;
}
.card {
  background: white;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 22px;
}
.auth {
  max-width: 500px;
  margin: 40px auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
button,
.button {
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  background: #1a4fff;
  color: #fff;
  font:
    600 14px Poppins,
    Arial;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  min-height: 46px;
}
button:hover,
.button:hover {
  background: #0f3ad4;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: #f3f3f1;
  color: #33466e;
}
.secondary:hover {
  background: #ebebef;
}
.danger {
  background: #ffeded;
  color: #b52238;
}
.danger:hover {
  background: #ffdddd;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
input,
select {
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid #c9d0e0;
  border-radius: 10px;
  font: 16px Poppins;
  background: #fff;
  color: #14141a;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin: 0;
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #98aafa;
  outline-offset: 3px;
}
.tag {
  padding: 6px 10px;
  border-radius: 12px;
  background: #eef1fb;
  color: #445a94;
  font-size: 14px;
}
.green {
  background: #e4f6eb;
  color: #13723e;
}
.amber {
  background: #fff2d6;
  color: #805308;
}
.red {
  background: #ffe8e8;
  color: #ad2434;
}
.error {
  color: #a81c32;
  background: #fff0f1;
  padding: 14px;
  border-radius: 10px;
}
.success {
  color: #146f40;
  background: #e5f6ed;
  padding: 14px;
  border-radius: 10px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero {
  padding: 45px;
  background: #eef2ff;
  border-radius: 16px;
  margin-bottom: 26px;
}
.code {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 5px;
}
.qr {
  width: 240px;
  max-width: 100%;
  background: white;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #e7eaf2;
  font-size: 14px;
  vertical-align: top;
}
footer {
  padding: 24px 5%;
  border-top: 1px solid #e3e7ef;
  font-size: 14px;
  color: #657187;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
dialog {
  max-width: 600px;
  width: calc(100% - 32px);
  border: 1px solid #e1e5ef;
  border-radius: 16px;
  padding: 28px;
  color: #14141a;
}
dialog::backdrop {
  background: #17243c99;
}
dialog button {
  margin-top: 12px;
}
.secret {
  overflow-wrap: anywhere;
  font-size: 16px;
}
.notice {
  border-left: 4px solid #1a4fff;
  padding-left: 18px;
}
form {
  display: grid;
  gap: 18px;
}
.empty {
  padding: 24px;
  text-align: center;
  color: #647087;
}
.stat {
  font-size: 36px;
  font-weight: 600;
  margin: 8px 0;
}
.device-icon {
  width: 54px;
  height: 40px;
  border: 3px solid #1a4fff;
  border-radius: 7px;
  margin-bottom: 22px;
  position: relative;
}
.device-icon:after {
  content: "";
  position: absolute;
  width: 24px;
  height: 3px;
  background: #1a4fff;
  bottom: -10px;
  left: 12px;
}
@media (max-width: 600px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }
  .brand span {
    display: none;
  }
  nav {
    gap: 16px;
  }
  main {
    margin: 28px auto;
  }
  .card,
  .hero {
    padding: 22px;
  }
  footer span {
    display: none;
  }
  h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: appear 0.25s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

[hidden] {
  display: none !important;
}

.recovery-codes {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #edf1fa;
  padding: 18px;
  border-radius: 12px;
  line-height: 1.9;
}
