/* ==========================================================================
   Bolso no Azul — Estilos da Página de Login & Cadastro
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(28, 126, 214, 0.08), transparent 50%),
              var(--soft);
}

.auth-header {
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s ease-in-out;
}

.auth-back-link:hover {
  color: var(--navy);
  background: rgba(11, 61, 145, 0.05);
}

.auth-container {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px 20px 48px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(11, 61, 145, 0.06);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--yel));
}

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

.auth-card-header h1 {
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--ink);
}

.auth-card-header p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.plan-badge-notice {
  background: #ebfbee;
  border: 1.5px solid #c3fae8;
  color: #2b8a3e;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plan-badge-notice strong {
  color: #0b3d91;
  font-weight: 800;
}

/* ==========================================================================
   Tabs (Login / Cadastro)
   ========================================================================== */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #edf1f7;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Google OAuth Button
   ========================================================================== */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid #d2d9e2;
  border-radius: 12px;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.google-btn:hover {
  background: #fbfcfe;
  border-color: #bcc6d4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.google-btn:active {
  transform: scale(0.985);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ==========================================================================
   Divider
   ========================================================================== */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

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

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.auth-form-panel {
  display: none;
}

.auth-form-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease-in-out, box-shadow 0.18s ease-in-out;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(28, 126, 214, 0.12);
}

.form-input::placeholder {
  color: #94a3b8;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.2);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background 0.15s ease-in-out;
}

.auth-submit-btn:hover {
  background: #093175;
  box-shadow: 0 6px 18px rgba(11, 61, 145, 0.28);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: scale(0.985);
}

.auth-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.auth-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   Google OAuth Simulation Modal (Protótipo)
   ========================================================================== */
.oauth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 16px;
}

.oauth-modal-overlay.active {
  display: grid;
  animation: fadeIn 0.2s ease-in-out;
}

.oauth-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    transform: scale(0.95) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.oauth-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.oauth-modal-header h3 {
  font-size: 17px;
  margin: 0;
  color: #1f2937;
}

.oauth-modal-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.oauth-account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.oauth-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.oauth-account-item:hover {
  background: #f8fafc;
  border-color: var(--blue);
  transform: translateY(-1px);
}

.oauth-account-item:active {
  transform: scale(0.985);
}

.oauth-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c7ed6, #0b3d91);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}

.oauth-account-info strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.oauth-account-info span {
  font-size: 12px;
  color: var(--muted);
}

.oauth-notice {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 14px;
  text-align: center;
}

.oauth-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.oauth-close-btn:hover {
  background: #f1f5f9;
  color: var(--ink);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 520px) {
  .auth-card {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .auth-header {
    padding: 16px;
  }
}

/* ==========================================================================
   Mensagens e estados (versão com login real)
   ========================================================================== */
.auth-msg { display: none; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
.auth-msg.show { display: block; }
.auth-msg.erro { background: #fff5f5; border: 1.5px solid #ffe3e3; color: #c92a2a; }
.auth-msg.ok { background: #ebfbee; border: 1.5px solid #c3fae8; color: #2b8a3e; }
.auth-msg.info { background: #e7f5ff; border: 1.5px solid #d0ebff; color: #0b3d91; }
.auth-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 700; cursor: pointer; }
.auth-link-btn:hover { text-decoration: underline; }
.auth-submit-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-buy { display: grid; gap: 10px; margin: 18px 0 6px; }
.auth-buy a { display: block; text-align: center; text-decoration: none; padding: 13px; border-radius: 12px; font-weight: 800; }
.auth-buy .pro { background: var(--navy); color: #fff; }
.auth-buy .start { border: 2px solid var(--navy); color: var(--navy); }
.auth-email-chip { display: inline-block; background: #edf1f7; border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 14px; color: var(--navy); word-break: break-all; }
.checkbox-label a { color: var(--blue); font-weight: 700; text-decoration: none; }
