/* =========================================
   AUTH PAGE – LOGIN / REGISTER (FINAL FIXED)
   Desktop | Tablet | Mobile
   ========================================= */

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f9;
  color: #111827;
  min-height: 100vh;
}

/* HEADER */
.header {
  background: #15305d;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.header .nav a {
  color: #e5e7eb;
  font-size: 15px;
  text-decoration: none;
}

.header .nav a:hover {
  color: #ffffff;
}

/* ===============================
   PAGE WRAPPER (BASE – MOBILE)
   =============================== */
.container {
  min-height: calc(100vh - 64px); /* header height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

/* PAGE TITLE */
.container h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

/* AUTH CARD (BASE – MOBILE) */
.form-card {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* FORM GROUP */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.form-group input {
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid #d1d5db;
  font-size: 16px;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
}

/* PRIMARY BUTTON */
.form-card .btn-primary {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16,185,129,0.35);
}

/* FOOTER TEXT */
.form-card p {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
}

.form-card a {
  color: #10b981;
  font-weight: 600;
  text-decoration: none;
}

.form-card a:hover {
  text-decoration: underline;
}

/* ERROR MESSAGE */
.container p[style*="color:red"] {
  background: #fee2e2;
  color: #b91c1c !important;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  text-align: center;
}

/* ===============================
   TABLET (481px – 1023px)
   =============================== */
@media (min-width: 481px) and (max-width: 1023px){

  .container {
    padding: 20px;
  }

  .container h2 {
    font-size: 24px;
    margin-bottom: 22px;
  }

  .form-card {
    width: 80%;
    max-width: 520px;
    padding: 28px 26px;
    border-radius: 18px;
  }
}

/* ===============================
   DESKTOP (>= 1024px)
   =============================== */
@media (min-width: 1024px){

  .container {
    align-items: center;
    justify-content: center;
    padding: 32px;
  }

  .container h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .form-card {
    width: 50%;
    max-width: 720px;
    padding: 32px 30px;
    border-radius: 20px;
  }
}
/* --- FORCE eye icon inside input --- */
.pw-wrap{
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.pw-wrap > input{
  width: 100% !important;
  height: 52px;              /* same as your other inputs */
  padding-right: 56px !important;  /* space for eye */
}

.pw-wrap > .pw-toggle{
  all: unset; /* resets any global button styles */
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;

  cursor: pointer !important;
  border-radius: 10px !important;
  color: #64748b !important;
  z-index: 10 !important;
}

.pw-wrap > .pw-toggle:hover{
  background: rgba(0,0,0,.06) !important;
  color: #0f172a !important;
}
