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

:root {
  --blue:        #1A3FA6;
  --blue2:       #2B56D8;
  --blue-light:  #EEF2FF;
  --yellow:      #FFB800;
  --white:       #FFFFFF;
  --bg:          #F4F6FB;
  --text:        #14192E;
  --muted:       #6B728E;
  --border:      #DDE1EE;
  --error:       #DC2626;
  --radius:      14px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(26,63,166,0.10), 0 1px 4px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.card-header img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
}
.card-header h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: white;
  text-align: center;
  line-height: 1.2;
}
.card-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-align: center;
}

.card-body {
  padding: 32px;
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.field input:hover:not(:focus) { border-color: #B9C0E0; }
.field input:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 4px rgba(43,86,216,0.12);
}
.field input::placeholder { color: #8B94AE; }

.forgot {
  display: block;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue2);
  text-decoration: none;
  margin-top: -12px;
  margin-bottom: 24px;
  cursor: pointer;
}
.forgot:hover { text-decoration: underline; }

.btn-primary {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  letter-spacing: 0.2px;
}
.btn-primary:hover:not(:disabled) { opacity: 0.92; }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.divider span { flex: 1; height: 1px; background: var(--border); }
.divider p { font-size: 13px; color: var(--muted); white-space: nowrap; }

.btn-magic {
  width: 100%;
  height: 52px;
  background: var(--blue-light);
  color: var(--blue);
  border: 2px solid rgba(26,63,166,0.15);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-magic:hover:not(:disabled) { background: #E0E8FF; }
.btn-magic:active:not(:disabled) { transform: scale(0.98); }
.btn-magic:disabled { opacity: 0.65; cursor: not-allowed; }

.safe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.safe-note svg { color: #22C55E; flex-shrink: 0; }

.magic-sent {
  text-align: center;
  padding: 20px 0;
}
.magic-sent .icon { font-size: 48px; margin-bottom: 16px; }
.magic-sent h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}
.magic-sent p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.magic-sent .email-highlight {
  color: var(--text);
  font-weight: 600;
}
.magic-sent .hint {
  font-size: 13px;
  margin-top: 12px;
}

.countdown-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.countdown-block .timer {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  letter-spacing: 2px;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  margin-top: 8px;
}
.btn-wa:hover { background: #1ebe5a; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.modal-box h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.modal-box p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal-box .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal-box .field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.modal-box .field input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.modal-box .field input:focus { border-color: var(--blue2); }

.page-footer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
