/* Talentos Mais — responsividade para desktop.
   Em telas menores que 900px, o layout mobile original permanece intacto. */

@media (min-width: 900px) {
  html,
  body,
  #root {
    width: 100%;
    min-width: 100%;
    min-height: 100%;
  }

  body {
    background:
      radial-gradient(circle at 12% 18%, rgba(46, 151, 172, 0.16), transparent 32%),
      radial-gradient(circle at 88% 82%, rgba(245, 158, 11, 0.14), transparent 30%),
      #eef2f5;
  }

  /* Expande a estrutura mobile sem criar rolagem no painel externo. */
  #root div[style*="max-width:480px"] {
    width: calc(100vw - 48px) !important;
    max-width: 1180px !important;
    height: calc(100dvh - 48px) !important;
    min-height: 680px;
    margin: 24px auto;
    border-radius: 28px;
    overflow: hidden !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14) !important;
  }

  /* Conteúdo confortável e legível nas telas de formulário. */
  #root .r-16y2uox.r-1777fci.r-1lpndhm {
    width: 100%;
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
    padding: 48px !important;
  }

  /* Login e cadastro em duas colunas. A linha ocupa toda a altura da caixa. */
  #root div[style*="max-width:480px"]:has(input[type="password"]) {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    background: #ffffff !important;
  }

  #root div[style*="max-width:480px"]:has(input[type="password"])::before {
    content: "TALENTOS +\A Descobrindo habilidades.\A Desenvolvendo potenciais.";
    white-space: pre-line;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 56px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(26px, 2.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background:
      radial-gradient(circle at 75% 20%, rgba(255, 193, 7, 0.38), transparent 28%),
      linear-gradient(145deg, #2e97ac 0%, #23798a 56%, #175765 100%);
  }

  /* Somente o formulário pode rolar quando o conteúdo for maior que a tela. */
  #root div[style*="max-width:480px"]:has(input[type="password"]) > div:last-child {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #root input,
  #root textarea,
  #root select {
    max-width: 100%;
  }
}

@media (min-width: 1440px) {
  #root div[style*="max-width:480px"] {
    max-width: 1280px !important;
  }
}

@media (min-width: 900px) and (max-height: 720px) {
  #root div[style*="max-width:480px"] {
    height: calc(100dvh - 24px) !important;
    min-height: 0;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  #root .r-16y2uox.r-1777fci.r-1lpndhm {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
}
