*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
}

.logo span {
  font-size: .85rem;
  color: #6c757d;
}

label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #495057;
}

input {
  display: block;
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid #dee2e6;
  border-radius: 7px;
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}

input:focus { border-color: #4361ee; }

.field { margin-bottom: 1rem; }

button[type="submit"] {
  width: 100%;
  padding: .72rem;
  background: #4361ee;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  margin-top: .5rem;
}

button[type="submit"]:hover { background: #3451d1; }
button[type="submit"]:disabled { background: #a0aec0; cursor: not-allowed; }

.error {
  display: none;
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
  border-radius: 6px;
  padding: .55rem .85rem;
  font-size: .85rem;
  margin-bottom: 1rem;
}

.error.visible { display: block; }

.otp-hint {
  font-size: .8rem;
  color: #6c757d;
  text-align: center;
  margin-top: .6rem;
}

#timer {
  font-weight: 700;
  color: #4361ee;
}

#timer.expiring { color: #e53e3e; }

.step { display: none; }
.step.active { display: block; }
