/* ==========================================================================
   Página: Conta já existe / Vincular IDP
   Arquivo sugerido: kc-idp-link-account.css
   ========================================================================== */

/* 1) Tokens (chaves) de customização */
:root {
  /* Cores institucionais */
  --tse-primary: #1b4fa3;
  --tse-primary-2: #2f6dd5;
  --tse-text: #1f2a37;
  --tse-muted: #6b7280;
  --tse-border: #d1d5db;

  /* Superfícies */
  --tse-card-bg: #ffffff;
  --tse-info-bg: #e8f1ff;
  --tse-page-overlay: rgba(255, 255, 255, 0.85);

  /* Sombras e raio */
  --tse-radius: 12px;
  --tse-radius-sm: 10px;


  /* Tipografia */
  --tse-title-size: 1.6rem;
  --tse-email-size: 1.25rem;
  --tse-body-size: 1rem;
  --tse-subtext-size: 0.85rem;

  /* Espaçamentos */
  --tse-gap-1: 10px;
  --tse-gap-2: 16px;
  --tse-gap-3: 24px;
  --tse-gap-4: 32px;

  /* Botões */
  --tse-btn-height: 48px;
  --tse-btn-font: 0.98rem;
  --tse-btn-weight: 600;
}

/* 2) Escopo da página (evita vazar estilo para outras telas)
   Se quiser mais seguro ainda, envolva o template com:
   <div class="tse-idp-link-page"> ... </div>
*/
.tse-idp-link-page {
  /* Ajuda no contraste sobre imagem de fundo */
  background: var(--tse-page-overlay);
  border-radius: var(--tse-radius);
  padding: var(--tse-gap-4);
  max-width: 820px;
}

/* 3) Título */
.tse-idp-link-page .kc-title {
  font-size: var(--tse-title-size);
  font-weight: 700;
  color: var(--tse-primary);
  margin-bottom: var(--tse-gap-3);
  line-height: 1.15;
}

/* 4) E-mail destacado */
.tse-idp-link-page .kc-email-highlight {
  font-size: var(--tse-email-size);
  font-weight: 700;
  text-align: center;
  color: var(--tse-text);
  padding: var(--tse-gap-2);
  border-radius: var(--tse-radius-sm);
  background: #f9fafb;
  border: 1px solid #eef2f7;
  margin-bottom: var(--tse-gap-3);
  word-break: break-word;
}

/* 5) Caixa informativa */
.tse-idp-link-page .kc-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--tse-info-bg);
  border-left: 5px solid var(--tse-primary);
  padding: var(--tse-gap-2);
  border-radius: var(--tse-radius-sm);
  margin-bottom: var(--tse-gap-4);
  color: var(--tse-text);
}

.tse-idp-link-page .kc-info-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(27, 79, 163, 0.25);
  color: var(--tse-primary);
  font-weight: 800;
  line-height: 1;
}

/* 6) Área de ações */
.tse-idp-link-page .kc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tse-gap-1);
}

/* 7) Botão primário */
.tse-idp-link-page .kc-btn-primary {
  width: 100%;
  height: var(--tse-btn-height);
  border: none;
  border-radius: var(--tse-radius-sm);
  cursor: pointer;
  color: #fff;
  font-size: var(--tse-btn-font);
  font-weight: var(--tse-btn-weight);
  background: linear-gradient(90deg, var(--tse-primary), var(--tse-primary-2));
  box-shadow: 0 10px 18px rgba(27, 79, 163, 0.22);
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}

.tse-idp-link-page .kc-btn-primary:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(27, 79, 163, 0.26);
}

.tse-idp-link-page .kc-btn-primary:active {
  transform: translateY(0);
}

.tse-idp-link-page .kc-btn-primary:focus-visible {
  outline: 3px solid rgba(47, 109, 213, 0.35);
  outline-offset: 3px;
}

/* 8) Texto auxiliar */
.tse-idp-link-page .kc-subtext {
  font-size: var(--tse-subtext-size);
  color: var(--tse-muted);
  text-align: center;
  margin-bottom: var(--tse-gap-2);
}

/* 9) Botão secundário */
.tse-idp-link-page .kc-btn-secondary {
  width: 100%;
  height: var(--tse-btn-height);
  border-radius: var(--tse-radius-sm);
  cursor: pointer;
  background: #fff;
  color: var(--tse-text);
  border: 1px solid var(--tse-border);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.tse-idp-link-page .kc-btn-secondary:hover {
  background: #f9fafb;
  border-color: #bfc5cf;
  transform: translateY(-1px);
}

.tse-idp-link-page .kc-btn-secondary:focus-visible {
  outline: 3px solid rgba(47, 109, 213, 0.35);
  outline-offset: 3px;
}

/* 10) Responsivo */
@media (max-width: 640px) {
  .tse-idp-link-page {
    padding: var(--tse-gap-3);
    border-radius: 10px;
  }

  .tse-idp-link-page .kc-title {
    font-size: 1.35rem;
  }

  .tse-idp-link-page .kc-email-highlight {
    font-size: 1.1rem;
  }
}
