/* ==========================================================================
   RADAR DE TALENTOS — PORTAL DE INTELIGÊNCIA (FIEL AO MODELO DA IMAGEM)
   ========================================================================== */
:root {
  color-scheme: dark;
  --space-black: #0a0414;
  --deep-purple: #120822;
  --primary-purple: #7625D9;
  --neon-violet: #9B4DFF;
  --luminous-lavender: #B884FF;
  --premium-white: #F7F5FF;
  --muted-lavender: #8E82A6;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font: 13.5px/1.42 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ri-portal-body {
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  background: var(--space-black);
  color: var(--premium-white);
  overflow: hidden;
}

.ri-page-shell {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.ri-page-shell.is-entering-dashboard {
  transform: scale(1.08);
  opacity: 0;
}

.ri-main-columns {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 52.5% 47.5%;
  overflow: hidden;
}

/* ==========================================================================
   AMBIENTE ESQUERDO: RADAR GIRATÓRIO 360° & MARCA OFICIAL
   ========================================================================== */
.ri-visual-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 41%, rgba(126, 42, 224, 0.24) 0%, rgba(20, 9, 38, 0.85) 48%, #0a0414 88%);
  border-right: 1px solid rgba(184, 132, 255, 0.14);
}

/* Topo Esquerdo: • INTELIGÊNCIA DE MERCADO (com Edge-to-Edge Safe Area) */
.ri-top-tag {
  position: absolute;
  top: calc(22px + var(--safe-top));
  left: calc(28px + var(--safe-left));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #a97eff;
  text-transform: uppercase;
}

.ri-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a97eff;
  box-shadow: 0 0 8px #a97eff;
}

/* Anéis orbitais externos sutis ao redor do radar (exatamente como na imagem) */
.ri-outer-orbit {
  position: absolute;
  top: 39%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(164, 92, 255, 0.08);
  pointer-events: none;
}

.ri-outer-orbit.orbit-1 {
  width: 340px;
  height: 340px;
}

.ri-outer-orbit.orbit-2 {
  width: 465px;
  height: 465px;
  border-color: rgba(164, 92, 255, 0.05);
}

.ri-center-piece {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 100%;
  margin-top: -8px;
}

.ri-radar-assembly {
  position: relative;
  width: 236px;
  height: 236px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

/* Disco do Radar com aro roxo luminoso fino como na imagem */
.ri-radar-disc {
  position: relative;
  width: 226px;
  height: 226px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(130, 50, 235, 0.20) 0%, rgba(16, 7, 30, 0.94) 75%);
  border: 2px solid #a855f7;
  box-shadow:
    0 0 28px rgba(168, 85, 247, 0.32),
    inset 0 0 24px rgba(168, 85, 247, 0.22);
  overflow: hidden;
}

.ri-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(184, 132, 255, 0.22);
  pointer-events: none;
}

.ri-ring.r-outer { width: 76%; height: 76%; }
.ri-ring.r-mid { width: 50%; height: 50%; }
.ri-ring.r-inner { width: 25%; height: 25%; }

.ri-crosshair {
  position: absolute;
  background: rgba(184, 132, 255, 0.14);
  pointer-events: none;
}

.ri-crosshair.ch-h {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.ri-crosshair.ch-v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.ri-tick {
  position: absolute;
  background: rgba(217, 166, 255, 0.55);
  z-index: 3;
}

.ri-tick.tick-n { top: 0; left: 50%; width: 1.5px; height: 14px; transform: translateX(-50%); }
.ri-tick.tick-s { bottom: 0; left: 50%; width: 1.5px; height: 14px; transform: translateX(-50%); }
.ri-tick.tick-e { right: 0; top: 50%; width: 14px; height: 1.5px; transform: translateY(-50%); }
.ri-tick.tick-w { left: 0; top: 50%; width: 14px; height: 1.5px; transform: translateY(-50%); }

/* Feixe de Varredura Giratório em 360° */
.ri-radar-beam {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(247, 245, 255, 0.78) 0deg,
    rgba(184, 132, 255, 0.45) 14deg,
    rgba(126, 42, 224, 0.16) 44deg,
    transparent 82deg,
    transparent 360deg
  );
  will-change: transform;
}

.ri-radar-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 22px #a855f7;
  z-index: 4;
}

/* Pontos de Talentos (Blips) dentro do Radar */
.ri-talent-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #e9d5ff;
  box-shadow: 0 0 10px #c084fc;
  opacity: 0.42;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 4;
}

.ri-talent-blip.is-lit {
  opacity: 1;
  transform: scale(1.32);
  background: #ffffff;
  box-shadow: 0 0 14px #ffffff, 0 0 24px #a855f7;
}

/* Tipografia da Marca: RADAR DE TALENTOS */
.ri-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.ri-brand-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ri-word-radar {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
}

.ri-word-talentos {
  font-size: 38px;
  font-weight: 900;
  color: #b57bff;
}

.ri-sub-text {
  margin: 10px 0 16px;
  font-size: 13px;
  font-weight: 400;
  color: #d4cce6;
  letter-spacing: 0.14em;
}

.ri-brand-divider {
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 132, 255, 0.28), transparent);
}

.ri-tagline-block {
  max-width: 360px;
}

.ri-sub-quote {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: #c2b8d9;
  line-height: 1.55;
}

.ri-pillars-caption {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #8f72bd;
}

/* ==========================================================================
   AMBIENTE DIREITO: FORMULÁRIO DE AUTENTICAÇÃO (FIEL À IMAGEM)
   ========================================================================== */
.ri-auth-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
  background: #0d061a;
}

.ri-auth-card {
  width: min(370px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ri-portal-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a97eff;
  margin-bottom: 10px;
}

.ri-auth-header h2 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

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

.ri-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ri-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ri-field label {
  font-size: 12.5px;
  font-weight: 500;
  color: #e2dcf0;
}

.ri-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(18, 9, 34, 0.85);
  border: 1px solid rgba(164, 92, 255, 0.26);
  color: #ffffff;
  font-size: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ri-field input::placeholder {
  color: #7c7094;
}

.ri-field input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.ri-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ri-password-wrap input {
  padding-right: 72px;
}

.ri-show-pwd-btn {
  position: absolute;
  right: 12px;
  border: 0;
  background: transparent;
  color: #b589ff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
}

.ri-show-pwd-btn:hover {
  color: #ffffff;
}

.ri-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-top: -2px;
}

.ri-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a398b8;
  cursor: pointer;
}

.ri-remember-label input {
  width: 14px;
  height: 14px;
  accent-color: #8b3dff;
}

.ri-text-link {
  border: 0;
  background: transparent;
  color: #b589ff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.ri-text-link:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

.ri-feedback {
  margin: -4px 0;
  min-height: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #c4b5fd;
}

.ri-submit-btn {
  height: 46px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(90deg, #7928ca 0%, #9b4dff 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 61, 255, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.ri-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(155, 77, 255, 0.5);
  filter: brightness(1.05);
}

.ri-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primeiro Acesso: Checklist de Senha Forte */
.ri-force-banner {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(121, 40, 202, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.ri-force-banner strong {
  display: block;
  font-size: 12.5px;
  color: #d8b4fe;
  margin-bottom: 3px;
}

.ri-force-banner p {
  margin: 0;
  font-size: 11.5px;
  color: #cbd5e1;
}

.ri-pwd-checklist {
  list-style: none;
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(18, 9, 34, 0.85);
  border: 1px solid rgba(164, 92, 255, 0.25);
  display: grid;
  gap: 3px;
  font-size: 11.5px;
  color: #9e8fb8;
}

.ri-pwd-checklist li.is-valid {
  color: #4ade80;
  font-weight: 600;
}

/* Rodapé do Card Direito */
.ri-auth-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-top: 2px;
}

.ri-signup-prompt {
  margin: 0;
  font-size: 12px;
  color: #9689ad;
}

.ri-footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(184, 132, 255, 0.12);
}

.ri-restricted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #7c6f94;
}

.ri-restricted-icon {
  color: #a97eff;
  font-size: 12px;
}

/* Barra Inferior Global: © 2026 Radar de Talentos | Inteligência estratégica */
.ri-bottom-bar {
  min-height: calc(36px + var(--safe-bottom));
  flex-shrink: 0;
  padding: 6px calc(28px + var(--safe-right)) calc(6px + var(--safe-bottom)) calc(28px + var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(184, 132, 255, 0.12);
  background: #080311;
  font-size: 11px;
  color: #706387;
}

.ri-apk-download-link {
  color: rgba(216, 150, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(183, 68, 255, 0.28);
  background: rgba(154, 50, 239, 0.12);
  transition: all 0.2s ease;
}

.ri-apk-download-link:hover {
  color: #ffffff;
  border-color: rgba(216, 150, 255, 0.65);
  background: rgba(154, 50, 239, 0.28);
}

/* ==========================================================================
   TABLETS (769px a 1024px) — Split-Screen proporcional Edge-to-Edge
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .ri-main-columns {
    grid-template-columns: 48% 52%;
  }
  .ri-visual-stage {
    padding: calc(28px + var(--safe-top)) 18px 16px calc(18px + var(--safe-left));
  }
  .ri-auth-stage {
    padding: calc(20px + var(--safe-top)) calc(24px + var(--safe-right)) 20px 24px;
  }
  .ri-radar-assembly {
    width: 190px;
    height: 190px;
  }
  .ri-radar-disc {
    width: 182px;
    height: 182px;
  }
  .ri-outer-orbit.orbit-1 { width: 260px; height: 260px; }
  .ri-outer-orbit.orbit-2 { width: 340px; height: 340px; }
  .ri-word-radar { font-size: 26px; }
  .ri-word-talentos { font-size: 31px; }
}

/* ==========================================================================
   MOBILE & SMARTPHONES (<= 768px) — Edge-to-Edge 100dvh Sem Scroll Desalinhado
   ========================================================================== */
@media (max-width: 768px) {
  html,
  body.ri-portal-body {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: #0a0414;
  }

  .ri-page-shell {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }

  .ri-main-columns {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hero Superior Compacto com Radar Giratório 360° + Logo */
  .ri-visual-stage {
    flex: 0 0 auto;
    padding: calc(14px + var(--safe-top)) calc(16px + var(--safe-right)) 12px calc(16px + var(--safe-left));
    border-right: 0;
    border-bottom: 1px solid rgba(184, 132, 255, 0.14);
    background: radial-gradient(circle at 50% 45%, rgba(126, 42, 224, 0.28) 0%, rgba(16, 7, 30, 0.92) 62%, #0a0414 100%);
  }

  .ri-top-tag {
    position: static;
    margin-bottom: 8px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }

  .ri-outer-orbit.orbit-1 {
    width: 156px;
    height: 156px;
    top: 44%;
  }

  .ri-outer-orbit.orbit-2 {
    width: 210px;
    height: 210px;
    top: 44%;
  }

  .ri-center-piece {
    margin-top: 0;
    max-width: 100%;
  }

  .ri-radar-assembly {
    width: 108px;
    height: 108px;
    margin-bottom: 8px;
  }

  .ri-radar-disc {
    width: 104px;
    height: 104px;
  }

  .ri-tick.tick-n,
  .ri-tick.tick-s {
    height: 8px;
  }

  .ri-tick.tick-e,
  .ri-tick.tick-w {
    width: 8px;
  }

  .ri-brand-lockup {
    margin-bottom: 4px;
  }

  .ri-brand-title {
    flex-direction: row;
    gap: 6px;
    align-items: baseline;
  }

  .ri-word-radar {
    font-size: 20px;
  }

  .ri-word-talentos {
    font-size: 20px;
  }

  .ri-sub-text {
    margin: 3px 0 6px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .ri-brand-divider {
    width: 150px;
  }

  .ri-sub-quote {
    display: none;
  }

  .ri-pillars-caption {
    margin-top: 4px;
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }

  /* Card de Login Inferior Compacto e Integrado */
  .ri-auth-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px calc(18px + var(--safe-right)) 12px calc(18px + var(--safe-left));
    background: #0d061a;
  }

  .ri-auth-card {
    width: 100%;
    max-width: 380px;
    gap: 11px;
  }

  .ri-portal-eyebrow {
    font-size: 9.5px;
    margin-bottom: 4px;
  }

  .ri-auth-header h2 {
    font-size: 21px;
    margin: 0 0 3px;
  }

  .ri-auth-header p {
    font-size: 12px;
  }

  .ri-form {
    gap: 10px;
  }

  .ri-field {
    gap: 4px;
  }

  .ri-field label {
    font-size: 11.5px;
  }

  .ri-field input {
    height: 40px;
    font-size: 13px;
  }

  .ri-submit-btn {
    height: 42px;
    font-size: 13.5px;
  }

  .ri-auth-footer {
    gap: 8px;
    margin-top: 0;
  }

  .ri-bottom-bar {
    min-height: calc(32px + var(--safe-bottom));
    padding: 4px calc(14px + var(--safe-right)) calc(6px + var(--safe-bottom)) calc(14px + var(--safe-left));
    font-size: 10px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .ri-apk-download-link {
    padding: 2px 8px;
    font-size: 9.5px;
    white-space: nowrap;
  }
}
