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

:root {
  --primary: #1a56db;
  --primary-dark: #1344b8;
  --bg: #f2f2f7;
  --card-bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --input-bg: #f0f2f5;
  --border: #e5e7eb;
  --error: #ef4444;
  --success: #10b981;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */
.card {
  background: var(--card-bg);
  border-radius: 0;
  padding: 48px 28px 32px;
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Steps */
.step {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.25s ease;
}
.step.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Heading */
h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---- Step 1: Input ---- */
.field-wrap {
  background: var(--input-bg);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.field-wrap label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.field-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.field-wrap input::placeholder { color: #adb5bd; }

.input-error {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-bottom: 12px;
  min-height: 18px;
  padding-left: 4px;
}

/* ---- Identifier display (step 2) ---- */
.id-display {
  background: var(--input-bg);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.id-display-inner { display: flex; flex-direction: column; gap: 2px; }
.id-display-label { font-size: 12px; color: var(--muted); }
.id-display-value { font-size: 15px; font-weight: 600; color: var(--text); }
.edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.edit-btn:hover { color: var(--primary); }

/* ---- PIN Boxes ---- */
.pin-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Browser native password-reveal eye icon — gizle */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button { display: none; }

.pin-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.pin-box {
  flex: 1;
  aspect-ratio: 1;
  max-width: 56px;
  border: none;
  border-radius: 12px;
  background: #f0f2f5;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  transition: background 0.15s, box-shadow 0.15s;
  -webkit-text-security: disc;
  caret-color: transparent;
}
.pin-box:focus {
  background: #e8edff;
  box-shadow: 0 0 0 2px var(--primary);
}
.pin-box.filled { background: #e8edff; }

/* ---- Primary Button ---- */
.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.18s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }

/* ---- Footer links ---- */
.footer-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.footer-top a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.footer-top a:hover { color: var(--primary); }

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom-left a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.footer-bottom-left a:hover { color: var(--primary); }

.footer-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s;
  padding: 4px;
}
.icon-btn:hover { color: var(--text); }

/* ---- Step header (back) ---- */
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.back-btn {
  background: var(--input-bg);
  border: none;
  border-radius: 10px;
  width: 36px; height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}
.back-btn:hover { background: var(--border); }
.step-counter { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---- Personal info inputs ---- */
.input-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }

/* ---- Success ---- */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 32px 0;
}
.success-icon {
  width: 76px; height: 76px;
  background: var(--success);
  color: #fff;
  font-size: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 6px 24px rgba(16,185,129,0.3);
  animation: popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}