/* ==========================================================================
   Locate-Me — Authentication Page Styles (Emerald Teal & Forest Obsidian)
   ========================================================================== */

:root {
  --brand-primary: #0d9488;
  --brand-hover: #0f766e;
  --brand-light: #ccf6f1;
  --brand-soft: #ecfdf9;
  --dark-card: #0f1f1e;
  --hero-bg-top: #091e1c;
  --hero-bg-bottom: #123532;
  --bg-white: #ffffff;
  --bg-section-soft: #f5f8f7;
  --text-dark: #263238;
  --text-body: #555555;
  --text-muted: #777777;
  --border-subtle: #d9e2e0;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background:
    radial-gradient(circle at 80% 18%, rgba(13, 148, 136, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 14% 85%, rgba(15, 118, 110, 0.22) 0%, transparent 46%),
    linear-gradient(135deg, var(--hero-bg-top) 0%, var(--hero-bg-bottom) 100%);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.auth-topbar {
  width: 100%;
  max-width: 1238px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.back-home-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.back-home-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 48px;
}

.auth-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 440px;
  background: var(--bg-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.auth-aside {
  background: var(--dark-card);
  color: #ffffff;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-light);
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(94, 234, 212, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
}

.auth-aside h1 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.auth-aside p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-feature-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.28);
  color: #5eead4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-card {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--bg-section-soft);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab.is-active {
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(15, 31, 30, 0.08);
}

.auth-heading {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.auth-subheading {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-body);
}

.auth-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 16px;
}

.auth-alert.is-error {
  display: block;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.auth-alert.is-success {
  display: block;
  background: var(--brand-soft);
  border: 1px solid #99f6e4;
  color: var(--brand-hover);
}

.google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.google-btn:hover:not(:disabled) {
  background: var(--bg-section-soft);
  border-color: #b7c8c5;
}

.google-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group.is-hidden {
  display: none;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-section-soft);
  color: var(--text-dark);
  font-size: 15px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #ffffff;
}

.submit-btn {
  margin-top: 6px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--brand-hover);
}

.submit-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.auth-footnote {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media only screen and (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .auth-aside {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }
}
