/* auth.css - Design Minimalista Verde Esmeralda para Login & Cadastro */
.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 6, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-card {
  background: #0d1410;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.8), 0 0 32px rgba(16, 185, 129, 0.1);
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
  font-family: Archivo, -apple-system, sans-serif;
}

.auth-backdrop.active .auth-card {
  transform: translateY(0) scale(1);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  line-height: 1;
}

.auth-close:hover {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

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

.auth-header img {
  height: 38px;
  margin-bottom: 12px;
}

.auth-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.auth-header p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #141f19;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-bottom: 20px;
}

.btn-google:hover {
  background: #192921;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
  color: #ffffff;
}

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

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  padding: 0 12px;
}

.auth-tabs {
  display: flex;
  background: #090e0b;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: none;
  background: none;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-tab-btn.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.auth-field input {
  background: #111a14;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.auth-field input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: #142219;
}

.auth-submit-btn {
  background: #10b981;
  color: #042f20;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.auth-submit-btn:hover {
  background: #34d399;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  display: none;
}

.auth-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #042f20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.btn-logout {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
  font-family: inherit;
  margin-left: 4px;
}

.btn-logout:hover {
  color: #f87171;
}
