/* 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 .hidden {
  display: none !important;
}

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

.auth-modal-content {
  position: relative;
  width: 100%;
  max-width: min(420px, calc(100vw - 48px));
  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: 32px clamp(24px, 5vw, 48px) 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 clamp(24px, 5vw, 48px) 36px;
}

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

.auth-modal .auth-subtitle {
  margin: 0 0 24px;
  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;
  align-items: stretch;
  gap: 16px;
}

.auth-modal #googleAuthContainerModal {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.auth-modal .auth-btn {
  width: 100%;
  padding: 16px 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: none;
  background: #1a1a1a;
  color: white;
}

.auth-modal .auth-btn-email {
  border: 2px solid #9ca3af;
  background: #ffffff;
  color: #1a1a1a;
  transition: background 0.2s, border-color 0.2s;
}

.auth-modal .auth-btn-email:hover {
  background: #f8f9fa;
  border-color: #6b7280;
}

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

.auth-modal .auth-divider::before,
.auth-modal .auth-divider::after {
  content: '';
  flex: 0 1 32%;
  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: 24px;
}

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

.auth-modal .auth-email-form #emailStep,
.auth-modal .auth-email-form #passwordStep {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-modal .auth-email-form #passwordConfirmWrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.auth-modal .password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-modal .password-input-wrap input {
  padding-right: 48px;
  flex: 1;
}
.auth-modal .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.auth-modal .password-toggle:hover {
  color: #1a1a1a;
  background: #f1f3f4;
}
.auth-modal .password-toggle[aria-pressed="true"] svg {
  opacity: 0.7;
}

.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-step-hint {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #5f6368;
}

.auth-modal .auth-step-hint.hidden {
  display: none !important;
}

.auth-modal .auth-btn-submit {
  margin-top: 0;
  width: 100%;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

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

.auth-modal .auth-back {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  align-self: flex-start;
}

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

.auth-modal .auth-timer-footer {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.8rem;
  color: #5f6368;
}
.auth-modal .auth-timer-footer strong {
  color: #ea580c;
}

.auth-modal .auth-legal {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
  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;
}
