/* Login & register — same palette as landing (teal / sage / deep ink) */

:root {
  --auth-teal: #54b4b0;
  --auth-teal-dark: #3a9a96;
  --auth-teal-deep: #2d7a77;
  --auth-sage-light: #d4e4bc;
  --auth-ink: #0c1a19;
  --auth-ink-soft: #1e3533;
  --auth-surface: #f4faf9;
  --auth-white: #fff;
  --auth-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --auth-radius: 20px;
  --auth-shadow: 0 20px 50px rgba(12, 26, 25, 0.1);
}

body.page-auth {
  margin: 0;
  min-height: 100vh;
  font-family: var(--auth-font) !important;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--auth-ink-soft);
  background: linear-gradient(165deg, #e8f4f2 0%, var(--auth-surface) 45%, #dff0ee 100%);
  -webkit-font-smoothing: antialiased;
}

.page-auth button,
.page-auth input,
.page-auth textarea,
.page-auth select,
.page-auth .btn1 {
  font-family: var(--auth-font) !important;
}

.page-auth a {
  color: var(--auth-teal-deep);
  font-weight: 500;
}

.page-auth a:hover {
  color: var(--auth-teal);
  text-decoration: none;
}

.auth-home-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-ink-soft);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(84, 180, 176, 0.25);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(12, 26, 25, 0.06);
}

.auth-home-link:hover {
  color: var(--auth-teal-deep);
  background: var(--auth-white);
}

.page-auth .auth-section .container {
  max-width: 960px;
}

.page-auth .auth-split {
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  background: var(--auth-white);
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .page-auth .auth-split {
    margin-top: 4.5rem;
  }
}

.page-auth .auth-promo {
  background: linear-gradient(160deg, #0c1a19 0%, #1e3533 55%, #1a4543 100%);
  color: rgba(244, 251, 249, 0.88);
  min-height: 280px;
}

@media (min-width: 768px) {
  .page-auth .auth-promo {
    min-height: 100%;
  }
}

.page-auth .auth-promo-logo {
  width: auto;
  height: 48px;
  max-width: 200px;
}

.page-auth .auth-promo-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  max-width: 22rem;
}

.page-auth .auth-promo-accent {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-top: 0.5rem;
}

.page-auth .auth-form-side h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--auth-ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-auth .auth-form-side .auth-lead {
  font-size: 0.9rem;
  color: var(--auth-ink-soft);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.page-auth .auth-form-side .form-control {
  border: 1px solid rgba(45, 122, 119, 0.2);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-auth .auth-form-side .form-control:focus {
  border-color: var(--auth-teal);
  box-shadow: 0 0 0 3px rgba(84, 180, 176, 0.2);
}

.page-auth .error {
  color: #c0392b !important;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-auth .btn1 {
  border: none;
  outline: none;
  min-height: 46px;
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--auth-ink);
  background: linear-gradient(135deg, var(--auth-sage-light) 0%, var(--auth-teal) 55%, var(--auth-teal-dark) 100%);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(84, 180, 176, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.page-auth .btn1:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  color: var(--auth-ink);
}

.page-auth .btn1:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.page-auth .auth-form-side p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Location picker */
.page-auth .location_select {
  display: none;
}

.page-auth .auth-location .auth-loc-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-ink);
  margin-bottom: 1.5rem;
}

.page-auth .auth-location .auth-loc-grid {
  background: none;
  box-shadow: none;
  justify-content: center;
  gap: 0.75rem;
}

.page-auth .auth-location .auth-loc-grid > [class*="col"] {
  flex: 0 0 auto;
  width: auto;
  min-width: 140px;
  max-width: 200px;
}

.page-auth .location_select .btn1.loc {
  width: 100%;
  background: var(--auth-white);
  color: var(--auth-teal-deep);
  border: 2px solid rgba(84, 180, 176, 0.45);
  box-shadow: none;
}

.page-auth .location_select .btn1.loc:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--auth-sage-light), var(--auth-teal));
  color: var(--auth-ink);
  border-color: transparent;
}

.page-auth .location_select .btn1.loc:disabled {
  opacity: 0.4;
}

.page-auth .auth-location-card {
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  background: var(--auth-white);
  padding: 2rem 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .page-auth .auth-location-card {
    padding: 2.5rem 2rem;
    margin-top: 4.5rem;
  }
}
