:root {
  --primary: #0F172A;
  --primary-dark: #1E293B;
  --accent: #0EA5E9;
  --accent-dark: #0284C7;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-light: #64748B;
  --border: #E2E8F0;

  --success: #22C55E;
  --danger: #DC2626;
}

.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pw-toggle {
  position: absolute; top: 50%; right: 12px;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #64748B; font-size: 15px; padding: 4px;
  display: flex; align-items: center;
}
.pw-toggle:hover { color: #0EA5E9; }

/* ── BODY ────────────────────────────────────── */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

/* ── HEADER ──────────────────────────────────── */

header {
  text-align: center;
  padding: 16px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* ── MAIN ────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
}

/* ── LOGIN CARD ──────────────────────────────── */

.login-card {
  background: var(--surface);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 400px;
}

.sub-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  text-align: center;
}

/* ── FORM ────────────────────────────────────── */

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

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-top: 12px;
}

input {
  border: 1px solid var(--border);
  font-size: 15px;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* ── LOGIN BUTTON ────────────────────────────── */

.btn-login {
  margin-top: 24px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-login:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-login:active {
  transform: scale(0.99);
}

.forgot-link { text-align: right; margin: -6px 0 12px; font-size: 13px; }
.forgot-link a { color: var(--accent, #0EA5E9); text-decoration: none; }
.forgot-link a:hover { text-decoration: underline; }

/*reset password page*/
.reset-hint { font-size: 14px; color: var(--text-light, #64748B); margin: -8px 0 16px; text-align: center; }
.reset-status { font-size: 13px; text-align: center; margin-top: 12px; min-height: 18px; }
.reset-status.success { color: #10B981; }
.reset-status.error { color: #DC2626; }
/* ── SIGNUP LINK ─────────────────────────────── */

.signup-link {
  text-align: center;
  margin-top: 20px;
  color: var(--text-light);
  font-size: 14px;
}

a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

a:hover {
  color: var(--accent-dark);
}

/* ── ERROR BANNER ────────────────────────────── */

.error-banner {
  display: none;
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
  font-size: 14px;
}

.error-banner.success {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.info-banner {
  background: rgba(14, 165, 233, 0.1);
  color: #0284C7;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 14px;
}

/* ── FOOTER ──────────────────────────────────── */

footer {
  text-align: center;
  padding: 20px;
}

.copyright {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* ── MOBILE ──────────────────────────────────── */

@media (max-width: 480px) {
  header {
    padding: 12px;
  }

  .logo-img {
    height: 48px;
  }

  .login-card {
    padding: 28px 24px;
  }

  .sub-title {
    font-size: 24px;
  }

  main {
    padding: 16px;
  }
}