/* Login page styles - matches homepage branding */

:root {
  --pda-green: #1F7A6B;
  --pda-green-dark: #145B50;
  --pda-green-light: #2C9A87;
  --pda-green-pale: #E8F4F1;
  --pda-gold: #C9A24D;
  --ink: #0F1F1C;
  --ink-soft: #4A5857;
  --ink-mute: #7A8785;
  --line: #D9E3E1;
  --bg: #FAFBFB;
  --error: #8B2020;
  --error-bg: #FFE5E5;
  --success: #155724;
  --success-bg: #D4EDDA;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, var(--pda-green) 0%, var(--pda-green-dark) 100%);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 31, 28, 0.15);
  padding: 48px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { line-height: 1.2; }
.brand-title { font-size: 14px; font-weight: 700; color: var(--pda-green-dark); letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--ink-mute); font-weight: 500; margin-top: 2px; }

.title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.sub { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
.sub-small { font-size: 13px; color: var(--ink-mute); line-height: 1.6; margin-bottom: 20px; }

.messages { margin-bottom: 16px; }

.message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.message.error { background: var(--error-bg); color: var(--error); border-left: 3px solid var(--error); }
.message.success { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }
.message.info { background: var(--pda-green-pale); color: var(--pda-green-dark); border-left: 3px solid var(--pda-green); }

.form { display: flex; flex-direction: column; gap: 16px; }

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: -10px;
}

.input {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--pda-green); box-shadow: 0 0 0 3px rgba(31, 122, 107, 0.15); }

.input-code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 28px;
  letter-spacing: 0.3em;
  text-align: center;
  font-weight: 700;
  color: var(--pda-green-dark);
}

.method-selector { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.method-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.method-option:hover { border-color: var(--pda-green-light); background: var(--pda-green-pale); }
.method-option input[type='radio'] { margin-top: 3px; accent-color: var(--pda-green); flex-shrink: 0; }
.method-option input[type='radio']:checked ~ .method-label { color: var(--pda-green-dark); }
.method-option:has(input:checked) { border-color: var(--pda-green); background: var(--pda-green-pale); }

.method-label { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.method-label strong { font-size: 14px; color: var(--ink); }
.method-desc { font-size: 12px; color: var(--ink-mute); line-height: 1.4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn-primary {
  background: var(--pda-green);
  color: white;
  box-shadow: 0 4px 12px rgba(31, 122, 107, 0.25);
}
.btn-primary:hover { background: var(--pda-green-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--ink-mute); cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost { background: transparent; color: var(--ink-soft); padding: 12px 16px; }
.btn-ghost:hover { color: var(--pda-green); background: var(--pda-green-pale); }

.btn.loading .btn-label::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider span { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }

.link-sent-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--pda-green) 0%, var(--pda-green-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.footer {
  margin-top: 32px;
  text-align: center;
  max-width: 480px;
  padding: 0 16px;
}

.footer-urdu {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 2.2;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}

.footer-meta { color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.footer-meta a { color: rgba(255, 255, 255, 0.95); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer-meta a:hover { border-bottom-color: white; }

@media (max-width: 520px) {
  .card { padding: 32px 24px; }
  .brand-title { font-size: 13px; }
  .title { font-size: 22px; }
}
