/* ==============================================
   AUTH OVERLAY — cobre o site até login
   ============================================== */
#authOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#authOverlay.auth-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 3rem 2.5rem 3.5rem;
  text-align: center;
}

.auth-logo {
  height: 72px;
  width: auto;
  margin: 0 auto 2.5rem;
  display: block;
}

.auth-subtitle {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.38;
  margin-bottom: 2.5rem;
}

/* ─── Tabs ─────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,.1);
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.8rem 0;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.auth-tab.active {
  opacity: 1;
  border-bottom-color: var(--black);
}

/* ─── Google button ─────────────────────────── */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(0,0,0,.2);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.8rem;
}

.auth-google-btn:hover {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.4);
}

.auth-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Divider ───────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,.25);
}

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

/* ─── Fields ────────────────────────────────── */
.auth-field {
  text-align: left;
  margin-bottom: 1.6rem;
}

.auth-field label {
  display: block;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.38;
  margin-bottom: 0.6rem;
}

.auth-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.16);
  padding: 0.55rem 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.04em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s;
}

.auth-field input:focus {
  border-bottom-color: var(--black);
}

.auth-field input::placeholder {
  opacity: 0.22;
}

/* ─── Phone row ─────────────────────────────── */
.auth-phone-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.auth-country-select {
  width: 140px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.16);
  padding: 0.55rem 1.2rem 0.55rem 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--black);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(0,0,0,.3)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
  transition: border-color 0.25s;
}

.auth-country-select:focus {
  border-bottom-color: var(--black);
}

.auth-phone-row input[type="tel"] {
  flex: 1;
}

/* ─── Buttons ───────────────────────────────── */
.auth-submit-btn {
  display: block;
  width: 100%;
  padding: 0.95rem 2rem;
  background: var(--black);
  color: var(--cream);
  border: 1px solid var(--black);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s;
  margin-top: 0.4rem;
}

.auth-submit-btn:hover   { opacity: 0.65; }
.auth-submit-btn:disabled { opacity: 0.3; cursor: default; }

.auth-submit-btn--outline {
  background: transparent;
  color: var(--black);
  margin-top: 0.8rem;
}

.auth-submit-btn--outline:hover {
  background: rgba(0,0,0,.04);
}

/* ─── Error message ─────────────────────────── */
.auth-error {
  font-size: 0.68rem;
  font-weight: 300;
  color: #8b3a3a;
  letter-spacing: 0.05em;
  margin-top: 1.2rem;
  line-height: 1.5;
  display: none;
}

/* ─── Status screens ────────────────────────── */
.auth-status {
  padding: 1rem 0 2rem;
}

.auth-status-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.auth-status h3 {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.auth-status p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.9;
  opacity: 0.5;
  margin-bottom: 0;
}

/* ─── Section separator ─────────────────────── */
.auth-section-sep {
  margin: 1.8rem 0 0;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.4rem 2.5rem;
  }
}
