/* Auth pages (Sign In / Sign Up) */
.auth-body {
  background: #f5f7fb;
  min-height: 100vh;
}
.auth-wrap{
  min-height: calc(100vh - 140px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 32px 16px;
}
.auth-card{
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  padding: 22px 20px;
}
.auth-card--wide{ max-width: 760px; }
.auth-logo{
  width: 180px;
  max-width: 70%;
  height: auto;
  display:block;
  margin: 0 auto 14px auto;
}
.auth-hero{
  text-align:center;
  margin-bottom: 16px;
}
.auth-hero h1{
  font-size: 1.35rem;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}
.auth-hero p{
  margin: 0;
  color: rgba(15,23,42,0.72);
  font-size: 0.98rem;
}
.auth-title{
  font-size: 1.35rem;
  margin: 0 0 10px 0;
}
.form-group{ margin-bottom: 12px; }
.form-group label{
  display:block;
  font-size: 0.92rem;
  margin: 0 0 6px 0;
  color: rgba(15,23,42,0.82);
}
.form-control{
  width:100%;
  padding: 12px 12px;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  background:#fff;
}
.form-control:focus{
  border-color: rgba(37,99,235,0.65);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px){
  .form-row{ grid-template-columns: 1fr; }
}
.auth-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 10px;
}
.auth-link{
  font-size: 0.92rem;
  color: rgba(37,99,235,0.9);
  text-decoration:none;
}
.auth-link:hover{ text-decoration: underline; }
.btn-primary-auth{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  cursor:pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary-auth:hover{ opacity: 0.92; }
.btn-primary-auth:active{ transform: translateY(1px); }
.auth-footer{
  margin-top: 14px;
  text-align:center;
  color: rgba(15,23,42,0.7);
  font-size: 0.95rem;
}
.auth-footer a{ color: rgba(37,99,235,0.9); text-decoration:none; }
.auth-footer a:hover{ text-decoration: underline; }

/* Minimal hamburger for auth pages */
.auth-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,247,251,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.auth-topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.auth-burger{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  cursor:pointer;
}
.auth-burger:focus{ outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.14); }
.auth-drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 80;
}
.auth-drawer{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: #ffffff;
  border-right: 1px solid rgba(15,23,42,0.08);
  transform: translateX(-105%);
  transition: transform 250ms ease;
  z-index: 90;
  padding: 16px;
}
.auth-drawer header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.auth-drawer .drawer-title{
  font-weight: 700;
  color: rgba(15,23,42,0.9);
  margin: 0;
}
.auth-close{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.12);
  background:#fff;
  cursor:pointer;
  font-size: 18px;
}
.auth-drawer nav a{
  display:block;
  padding: 12px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(15,23,42,0.9);
  font-weight: 600;
}
.auth-drawer nav a:hover{
  background: rgba(15,23,42,0.05);
}
.auth-drawer-open .auth-drawer-overlay{
  opacity: 1;
  pointer-events: auto;
}
.auth-drawer-open .auth-drawer{
  transform: translateX(0);
}
.lock-scroll{ overflow: hidden; }

/* Modal */
.auth-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  display: none;
  align-items:center;
  justify-content:center;
  z-index: 120;
  padding: 16px;
}
.auth-modal{
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 18px 50px rgba(15,23,42,0.18);
  padding: 18px 16px;
}
.auth-modal h2{ margin: 0 0 8px 0; font-size: 1.15rem; }
.auth-modal p{ margin: 0 0 14px 0; color: rgba(15,23,42,0.75); line-height: 1.5; }
.auth-modal .modal-actions{ display:flex; justify-content:flex-end; gap: 10px; }
.btn-secondary-auth{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.14);
  background: #fff;
  cursor:pointer;
  font-weight: 600;
}
.legal-text p{ line-height: 1.65; color: rgba(15,23,42,0.78); }

/* Legal pages (Terms / Privacy) */
.legal-header{
  position: sticky;
  top: 0;
  z-index: 110;
  background: #ffffff;
  border-bottom: 1px solid rgba(15,23,42,0.10);
}
.legal-header__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  position: relative;
}
.legal-brand{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.legal-brand__logo{
  height: 40px;
  width: auto;
  display: block;
}
.legal-menu__btn{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0f172a;
}
.legal-menu__btn:focus-visible{
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}
.legal-menu__icon{ font-size: 22px; line-height: 1; }

.legal-menu{
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.legal-menu__backdrop{
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15,23,42,0.35);
  opacity: 0;
  pointer-events: none;
}
.legal-menu__panel{
  position: absolute;
  top: 64px;
  left: 12px;
  width: min(320px, calc(100% - 24px));
  background: #fff;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 14px 36px rgba(15,23,42,0.14);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.legal-menu.is-open{ pointer-events: auto; }
.legal-menu.is-open .legal-menu__panel{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.legal-menu.is-open .legal-menu__backdrop{
  opacity: 1;
  pointer-events: auto;
}

.legal-menu__link{
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
}
.legal-menu__link:hover{ background: rgba(15,23,42,0.04); }
.legal-menu__link:focus-visible{
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}
.legal-menu__divider{
  height: 1px;
  background: rgba(15,23,42,0.10);
  margin: 8px 0;
}
.legal-menu__contact{ padding: 8px 12px 10px 12px; }
.legal-menu__label{ font-size: 0.85rem; color: rgba(15,23,42,0.65); margin-bottom: 6px; font-weight: 600; }
.legal-menu__sub{
  display: block;
  text-decoration: none;
  color: rgba(15,23,42,0.9);
  padding: 6px 0;
  font-weight: 600;
}
.legal-menu__sub:hover{ text-decoration: underline; }

.legal-wrap{
  padding: 28px 0 56px;
}
.legal-card{
  width: min(980px, 92vw);
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  padding: 22px 18px;
}
.legal-title{ margin: 0 0 6px 0; font-size: 1.6rem; }
.legal-meta{ margin: 0 0 16px 0; color: rgba(15,23,42,0.6); font-weight: 600; }
.legal-text h2{ margin: 18px 0 8px; font-size: 1.1rem; }
.legal-text h3{ margin: 14px 0 8px; font-size: 1rem; }
.legal-text ul, .legal-text ol{ margin: 0 0 12px 18px; color: rgba(15,23,42,0.78); line-height: 1.6; }
.legal-text li{ margin: 6px 0; }
.legal-note{
  margin: 10px 0 14px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.78);
}
.legal-ack{ margin-top: 18px; font-weight: 700; color: rgba(15,23,42,0.82); }

@media (max-width: 520px){
  .legal-brand__logo{ height: 34px; }
  .legal-card{ padding: 18px 14px; }
}
