* { box-sizing: border-box; margin: 0; }

body {
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #eef2f7;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, .12);
  text-align: center;
}

.logo { font-size: 42px; }

h1 { font-size: 24px; margin: 10px 0 6px; }

.sub {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 14px 0 6px;
}

.hint { font-weight: 400; color: #94a3b8; }

input[type=email],
input[type=password],
input[inputmode] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border .15s;
}

input:focus { border-color: #2563eb; }

#code {
  text-align: center;
  letter-spacing: 8px;
  font-size: 20px;
  font-family: ui-monospace, monospace;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-row input { flex: 1; }

.countdown {
  flex-shrink: 0;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: #64748b;
  white-space: nowrap;
}

.countdown.expired { color: #b91c1c; font-weight: 600; }

.checklist {
  list-style: none;
  margin: 8px 0 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}

.checklist li {
  font-size: 12px;
  color: #94a3b8;
  padding-left: 18px;
  position: relative;
  transition: color .15s;
}

.checklist li::before {
  content: '○';
  position: absolute;
  left: 0;
}

.checklist li.ok { color: #047857; }
.checklist li.ok::before { content: '✓'; }

.btn {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: filter .15s;
}

.btn.primary { background: #2563eb; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }

.btn:disabled { opacity: .75; cursor: wait; }
.btn.busy { display: flex; align-items: center; justify-content: center; gap: 9px; }
.btn.busy::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
}

.status.ok { background: #ecfdf5; color: #047857; }
.status.err { background: #fef2f2; color: #b91c1c; }
.status.busy { background: #eff6ff; color: #1d4ed8; }
.status.big { font-size: 16px; font-weight: 600; }

.link {
  margin-top: 14px;
  background: none;
  border: 0;
  color: #2563eb;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
