/* ═══════════════════════════════════════════════════════════════════
   ASTRO 360 — auth.css
   Estilos compartilhados de login / cadastro / recuperar-senha
   ═══════════════════════════════════════════════════════════════════ */

.auth-main {
  min-height: 100vh;
  padding: 130px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(232, 198, 104, 0.32);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 30px 80px rgba(10, 4, 25, 0.55), 0 0 60px rgba(232, 198, 104, 0.12);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(232, 198, 104, 0.10), transparent 60%);
  pointer-events: none;
}

.auth-card > * { position: relative; z-index: 1; }

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(232, 198, 104, 0.35));
}

.auth-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.auth-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: white;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.94rem;
  color: var(--lilas-mist);
  line-height: 1.5;
}

/* ─── Botão Google ─── */
.btn-google {
  width: 100%;
  padding: 14px 18px;
  background: white;
  color: #1a1a1a;
  border: none;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.25s;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-google:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.btn-google svg {
  flex-shrink: 0;
}

/* ─── Separador ─── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilas-mist);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(232, 198, 104, 0.25);
}

/* ─── Formulário ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field { position: relative; }

.auth-field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10, 4, 25, 0.55);
  border: 1px solid rgba(232, 198, 104, 0.25);
  border-radius: 12px;
  color: white;
  font-family: var(--sans);
  font-size: 0.96rem;
  transition: all 0.3s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 4, 25, 0.72);
  box-shadow: 0 0 0 4px rgba(232, 198, 104, 0.12);
}

.auth-field input::placeholder {
  color: rgba(217, 208, 245, 0.45);
}

/* ─── Opções (esqueci senha, termos) ─── */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 12px;
  font-size: 0.86rem;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--lilas-fog);
  line-height: 1.45;
  font-size: 0.84rem;
}

.auth-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--gold);
}

.auth-link {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}

.auth-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ─── Botão submit ─── */
.auth-submit {
  margin-top: 10px;
  width: 100%;
  padding: 16px;
  position: relative;
}

.auth-submit.loading .btn-text { opacity: 0; }
.auth-submit.loading .btn-spinner { display: block !important; }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 4, 25, 0.2);
  border-top-color: var(--deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ─── Mensagens de erro / sucesso ─── */
.auth-error {
  padding: 12px 16px;
  background: rgba(255, 158, 158, 0.12);
  border: 1px solid rgba(255, 158, 158, 0.35);
  border-radius: 12px;
  color: #ffb3b3;
  font-size: 0.88rem;
  margin-top: 4px;
}

.auth-success {
  padding: 14px 16px;
  background: rgba(167, 232, 158, 0.12);
  border: 1px solid rgba(167, 232, 158, 0.32);
  border-radius: 12px;
  color: #b3e8b3;
  font-size: 0.88rem;
  margin-top: 4px;
  line-height: 1.5;
}

.auth-success strong { color: white; }

/* ─── Rodapé do card ─── */
.auth-footer-text {
  text-align: center;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--lilas-mist);
}

/* ─── Responsivo ─── */
@media (max-width: 500px) {
  .auth-card {
    padding: 36px 26px;
    border-radius: 22px;
  }
  .auth-title {
    font-size: 1.65rem;
  }
}
