/*
 * selfservicelogin.css
 * ─────────────────────────────────────────────────────────────
 * Navy / gold design for the self-service login page.
 * Includes navbar styles for coherence with parkinglocator & selfsignup.
 * ─────────────────────────────────────────────────────────────
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display&display=swap');

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(245, 194, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo-icon .p-letter { font-size: 22px; font-weight: 400; color: var(--gold-text); }
.logo-icon .car-icon { position: absolute; bottom: 4px; right: 4px; font-size: 8px; }
.logo-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-center { display: flex; gap: 24px; align-items: center; }
.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-nav {
  padding: 8px 16px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  border: 2px solid var(--gold);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-nav-solid        { background: var(--gold); color: var(--gold-text); }
.btn-nav-solid:hover  { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--gold-text); }
.btn-nav-outline      { background: transparent; color: var(--gold); }
.btn-nav-outline:hover{ background: var(--gold); color: var(--gold-text); }

/* Hamburger trigger */
.navbar .hamburger {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 4px;
  -webkit-appearance: none;
  appearance: none;
}
.navbar .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ════════════════════════════════════════
   HAMBURGER MENU OVERLAY
════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.menu-top-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.menu-top-logo-icon {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-top-logo-icon span { font-size: 20px; font-weight: 400; color: var(--gold-text); }
.menu-top-logo-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-close {
  background: var(--navy) !important;
  color: var(--white) !important;
  width: 38px; height: 38px;
  border-radius: 50% !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  padding: 0 !important;
  touch-action: manipulation;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.menu-close:hover { background: #1a2f52 !important; }

.menu-nav-actions {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 0;
}
.menu-nav-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  touch-action: manipulation;
  box-sizing: border-box;
}
.menu-nav-btn-solid        { background: var(--gold); color: var(--gold-text); border: 2px solid var(--gold); }
.menu-nav-btn-solid:hover  { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--gold-text); }
.menu-nav-btn-outline      { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.menu-nav-btn-outline:hover{ background: var(--navy); color: var(--white); }

.menu-divider { height: 1px; background: #eee; margin: 16px 24px 0; display: none; }

.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-y: auto;
  padding: 10px 0;
}
.menu-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 24px;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 24px;
  transition: color 0.2s;
  text-align: center;
  width: 100%;
  touch-action: manipulation;
  display: block;
}
.menu-link:hover,
.menu-link:active { color: var(--gold-dark); }
.menu-link.muted  { color: #bbb; font-size: 18px; }

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
/* Push content below fixed navbar */
div#wrapper {
  padding-top: var(--nav-h);
  box-sizing: border-box;
}

#react { height: unset; }

/* Hide template login link (user is already on login page) */
.login_link { display: none; }

html, body {
  background: var(--light-gray);
  font-family: 'DM Sans', sans-serif;
}

div#fullpage div#main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h, 64px));
  background: var(--light-gray);
  padding: 24px 16px;
}

/* ════════════════════════════════════════
   LOGIN CARD
════════════════════════════════════════ */
#loginForm {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 27, 46, 0.10);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 28px;
}

#loginForm h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin: 0 0 6px;
  padding: 0;
}
#loginForm h1::after { content: none; }

/* Labels */
#loginForm label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin-top: 16px;
  margin-bottom: 4px;
  width: auto;
  max-width: unset;
  text-align: left;
  padding: 0;
  line-height: 1.4;
  box-sizing: border-box;
}

/* Inputs */
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[type="email"] {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 0;
}
#loginForm input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 193, 2, 0.12);
  background: var(--white);
}
#loginForm input::placeholder {
  color: #aaa;
  font-style: normal;
}

/* 2FA comment */
#loginForm p {
  font-size: 12px;
  color: var(--mid-gray);
  text-align: center;
  margin: 10px 0 4px;
  line-height: 1.5;
}

/* Buttons */
#loginForm button#login,
#loginForm button#submitcode {
  width: 100%;
  padding: 12px;
  margin: 18px 0 0;
  background: var(--gold);
  color: var(--gold-text);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#loginForm button#login:hover,
#loginForm button#submitcode:hover {
  background: var(--gold-dark);
}

/* Reset password link */
#loginForm #resetpassword {
  text-align: center;
  margin: 14px 0 4px;
  justify-self: unset;
}
#loginForm #resetpassword a {
  color: var(--gold-dark);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}
#loginForm #resetpassword a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ParkSMART notice */
#loginForm #parksmartaccountnotice {
  font-size: 11px;
  color: var(--mid-gray);
  line-height: 1.5;
  margin: 8px 0;
  padding: 10px 14px;
  background: var(--light-gray);
  border-radius: 6px;
}
#loginForm #parksmartaccountnotice em {
  font-style: normal;
}

/* New account section */
#loginForm #newaccount {
  font-size: 12px;
  color: var(--text-dark);
  text-align: center;
  margin: 14px 0 6px;
}

#loginForm button#newParkSMART {
  width: 100%;
  padding: 11px;
  margin: 0;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
#loginForm button#newParkSMART:hover {
  background: var(--navy);
  color: var(--white);
}
#loginForm button#newParkSMART a {
  color: inherit;
  text-decoration: none;
}

/* First login activation message */
#loginForm p:first-of-type {
  margin-top: 0;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .btn-nav-outline { display: none; }
  .menu-nav-actions { display: flex; }
  .menu-divider { display: block; }
  .menu-link { font-size: 22px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .nav-center, .btn-nav-solid, .btn-nav-outline { display: none; }
  .logo-name { display: none; }
}

@media screen and (max-width: 480px) {
  :root { --nav-h: 52px; }
  .logo-icon { width: 36px; height: 36px; }
  .logo-icon .p-letter { font-size: 18px; }
  .navbar .hamburger span { width: 20px; }
  .menu-link { font-size: 20px; padding: 9px 24px; }
  .menu-link.muted { font-size: 16px; }

  #loginForm {
    padding: 28px 20px 22px;
    border-radius: 10px;
  }
  #loginForm h1 { font-size: 20px; }
}
