/* Auth Modal — estilos do card dentro do modal (sem afetar body da landing) */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: opacity 0.2s;
}

.auth-modal.hidden {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.auth-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Card styles — estilo Google */
.auth-modal .auth-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  overflow: hidden;
}

.auth-modal .auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
}

.auth-modal .auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.auth-modal .auth-logo:hover {
  color: #1a1a1a;
}

.auth-modal .auth-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.auth-modal .auth-close:hover {
  background: #fafafa;
  color: #1a1a1a;
}

.auth-modal .auth-body {
  padding: 40px 40px 36px;
}

.auth-modal .auth-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 400;
  color: #202124;
  letter-spacing: normal;
}

.auth-modal .auth-subtitle {
  margin: 0 0 32px;
  font-size: 0.875rem;
  color: #5f6368;
  line-height: 1.4;
}

.auth-modal .auth-subtitle strong {
  color: #1a1a1a;
}

.auth-modal .auth-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal .auth-options.hidden {
  display: none;
}

.auth-modal .auth-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #1a1a1a;
}

.auth-modal .auth-btn-google {
  border-color: #dadce0;
  background: #ffffff;
}

.auth-modal .auth-btn-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.auth-modal .auth-btn-email {
  border: none;
  background: #1a1a1a;
  color: white;
}

.auth-modal .auth-btn-email:hover {
  background: #333333;
  color: white;
}

.auth-modal .auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}

.auth-modal .auth-divider::before,
.auth-modal .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.auth-modal .auth-divider span {
  font-size: 0.8rem;
  color: #6b6b6b;
  font-weight: 500;
}

.auth-modal .auth-email-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-modal .auth-email-form.hidden {
  display: none;
}

.auth-modal .auth-email-form label {
  font-size: 0.875rem;
  font-weight: 400;
  color: #3c4043;
}

.auth-modal .auth-email-form input {
  padding: 13px 15px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-modal .auth-email-form input::placeholder {
  color: #5f6368;
}

.auth-modal .auth-email-form input:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 1px #1a1a1a;
}

.auth-modal .auth-errors {
  margin: 0;
  font-size: 0.8125rem;
  color: #d93025;
  line-height: 1.4;
}

.auth-modal .auth-errors.hidden {
  display: none;
}

.auth-modal .auth-btn-submit {
  margin-top: 8px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
}

.auth-modal .auth-btn-submit:hover {
  background: #333333;
  color: white;
}

.auth-modal .auth-back {
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  align-self: flex-start;
}

.auth-modal .auth-back:hover {
  color: #333333;
}

.auth-modal .auth-legal {
  margin: 28px 0 0;
  font-size: 0.75rem;
  color: #5f6368;
  line-height: 1.5;
}

.auth-modal .auth-legal a {
  color: #1a1a1a;
  text-decoration: none;
}

.auth-modal .auth-legal a:hover {
  text-decoration: underline;
}
