/* ── Auth pages (login.php, reset-password.php) ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #0d1117;
  --bg-card:  #1f2937;
  --border:   #374151;
  --yellow:   #F8B41B;
  --text:     #ffffff;
  --text-sub: #9ca3af;
  --error:    #ef4444;
  --green:    #4ade80;
}
body {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(99,102,241,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(139,92,246,0.12) 0%, transparent 60%),
    #0a0a0a;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.top-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--yellow); z-index: 100; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  width: 100%; max-width: 420px;
}
.logo { margin-bottom: 6px; text-align: center; }
.logo img { max-height: 36px; max-width: 120px; width: auto; }
.subtitle {
  text-align: center; color: var(--text-sub);
  font-size: 13px; font-weight: 500;
  margin-bottom: 32px; letter-spacing: 0.5px;
}
label {
  display: block; color: var(--text-sub);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px;
}
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 15px;
  outline: none; transition: border-color .2s; margin-bottom: 20px;
}
input:focus { border-color: var(--yellow); }
input::placeholder { color: #4b5563; }
.pwd-wrap { position: relative; margin-bottom: 20px; }
.pwd-wrap input { margin-bottom: 0; padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #4b5563; padding: 0; display: flex; align-items: center; transition: color .2s;
}
.pwd-toggle:hover { color: var(--text-sub); }
.btn-primary {
  width: 100%; background: var(--yellow); color: #000; border: none;
  border-radius: 8px; padding: 13px; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; transition: opacity .2s; margin-top: 4px;
}
.btn-primary:hover { opacity: .88; }
.error-msg {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  color: var(--error); border-radius: 8px;
  padding: 11px 14px; font-size: 14px; margin-bottom: 20px;
}
.bottom-links {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; font-size: 13px; color: var(--text-sub);
}
.bottom-links a, .bottom-links button {
  color: var(--yellow); text-decoration: none; font-weight: 500;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: inherit; padding: 0;
}
.bottom-links a:hover, .bottom-links button:hover { text-decoration: underline; }

/* Modals */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 200;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px 36px;
  width: 100%; max-width: 420px; position: relative;
  animation: fadeUp .18s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--text-sub); padding: 4px; display: flex; align-items: center; transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.modal-sub   { font-size: 13px; color: var(--text-sub); margin-bottom: 28px; }
.success-box { text-align: center; }
.success-box .check {
  width: 52px; height: 52px; background: rgba(74,222,128,.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-box .check svg { color: var(--green); }
.success-box h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--green); }
.success-box p  { font-size: 14px; color: var(--text-sub); line-height: 1.6; margin-bottom: 24px; }
.page-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 24px; text-align: center; font-size: 12px; color: #4b5563;
}
.page-footer a { color: var(--yellow); text-decoration: none; margin: 0 6px; }
.page-footer a:hover { text-decoration: underline; }
.back-link { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-sub); }
.back-link a { color: var(--yellow); text-decoration: none; font-weight: 500; }
.back-link a:hover { text-decoration: underline; }
.hint { font-size: 12px; color: var(--text-sub); margin-top: -14px; margin-bottom: 20px; }
