﻿:root {
    --blue: #0551C8;
    --blue-soft: #3B7FD6;
    --blue-dark: #071B55;
    --yellow: #EBB82B;
    --green: #569523;
    --mint: #00AE93;
    --text: #091B4F;
    --muted: #64708D;
    --line: #E6EAF4;
    --bg: #F8FAFF;
    --white: #FFFFFF;
    --shadow: 0 18px 45px rgba(9, 27, 79, .10);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
  }

  .container-fluid {
    padding-right: 0px;
    padding-left: 0px;
  }

  a:focus, a:hover {
    /* border-bottom: 2px solid var(--blue);
    padding-bottom: 3px;
    text-decoration: none !important; */

    text-decoration: underline !important;
    text-decoration-thickness: 3px !important; /* Espessura da linha */
    text-underline-offset: 7px !important;
  }

  .candidato-area-nav-link:focus,
  .candidato-area-nav-link:hover {
    text-decoration: none !important;
  }

  a { color: inherit; text-decoration: none; }
  .portal-container { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }

  .topbar {
    min-height: 80px;
    padding: 12px clamp(16px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 24px);
    flex-wrap: nowrap;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #EEF1F8;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .brand-area {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 18px);
    flex: 0 1 auto;
    min-width: 0;
  }
  .logo { display: block; object-fit: contain; flex-shrink: 0; }
  .logo-governo { width: clamp(88px, 11vw, 165px); height: auto; max-height: 56px; }
  .logo-prefeitura { width: clamp(76px, 9vw, 150px); height: auto; max-height: 48px; }
  .logo-bc { width: clamp(96px, 12vw, 210px); height: auto; max-height: 40px; }
  .divider { width: 1px; height: clamp(32px, 4.5vw, 56px); background: #CED6E8; flex-shrink: 0; }
  .nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    margin-left: auto;
    margin-right: clamp(8px, 1.5vw, 16px);
    font-weight: 700;
    font-size: clamp(12px, 1.1vw, 14px);
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .nav-menu a:hover { color: var(--blue); }
  .actions {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    flex: 0 0 auto;
  }
  .topbar .btn {
    padding: clamp(10px, 1.1vw, 14px) clamp(12px, 1.6vw, 24px);
    font-size: clamp(12px, 1.1vw, 14px);
    white-space: nowrap;
  }
  .btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 5px !important;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .btn:hover,
  .btn:focus {
    text-decoration: none !important;
    text-underline-offset: unset !important;
    text-decoration-thickness: unset !important;
  }

  /* Preenchido com --blue */
  .btn-blue,
  .btn-primary {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 12px 24px rgba(5, 81, 200, .22);
  }

  .btn-blue:hover,
  .btn-blue:focus,
  .btn-primary:hover,
  .btn-primary:focus {
    color: var(--white);
    box-shadow: 0 12px 24px rgba(7, 27, 85, .28);
  }

  /* Outline com borda --blue */
  .btn-blue-outline,
  .btn-outline {
    color: var(--blue);
    background: var(--white);
    border-color: var(--blue);
    box-shadow: none;
  }

  .btn-blue-outline:hover,
  .btn-blue-outline:focus,
  .btn-outline:hover,
  .btn-outline:focus {
    color: var(--blue);
    box-shadow: 0 12px 24px rgba(59, 127, 214, .16);
  }

  .hero {
    min-height: clamp(520px, 58vh, 640px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  }
  .hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -90px;
    width: 62%;
    height: 140px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 100% 0 0 0;
    opacity: .75;
  }
  .hero-content { padding: 72px 0 40px 64px; max-width: 820px; z-index: 2; }
  .eyebrow { color: var(--green); font-weight: 800; margin: 0 0 16px; letter-spacing: .03em; }
  h1 { margin: 0; color: var(--blue-dark); font-size: clamp(38px, 4vw, 64px); line-height: 1.08; letter-spacing: -0.05em; }
  h1 span { color: var(--blue); display: block; }
  .subtitle { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 620px; margin: 22px 0 32px; }
  .hero-image {
    position: relative;
    min-height: clamp(520px, 58vh, 640px);
    overflow: hidden;
    border-bottom-left-radius: 240px;
    z-index: 1;
    box-shadow: 0 24px 48px rgba(9, 27, 79, .12);
  }
  .hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(248, 250, 255, .94) 0%, rgba(248, 250, 255, .55) 22%, transparent 48%);
    pointer-events: none;
  }
  .hero-image::after {
    content: "";
    position: absolute;
    left: -24px;
    top: -16px;
    width: 115%;
    height: 108%;
    border-left: 2px solid var(--yellow);
    border-bottom: 2px solid var(--yellow);
    border-radius: 0 0 0 55%;
    opacity: .65;
    z-index: 3;
    pointer-events: none;
  }
  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    display: block;
  }

  .search-card {
    display: flex;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: center;
    max-width: 980px;
    min-height: 78px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    justify-content: space-between;
  }
  .field { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 50px; width: 75%; }
  .field.field-select {
    position: relative;
    padding: 0 40px 0 18px;
    transition: background-color .2s ease;
  }
  .field.field-select::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    pointer-events: none;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23071B55'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    opacity: .45;
    transition: opacity .2s ease, transform .2s ease;
  }
  .field.field-select:hover { background: rgba(238, 242, 255, .45); }
  .field.field-select:focus-within {
    background: #EEF2FF;
    z-index: 1;
  }
  .field.field-select:focus-within::after {
    opacity: .85;
    transform: translateY(-50%) rotate(180deg);
  }
  .field input, .field select { width: 100%; border: 0; outline: 0; color: var(--muted); font: inherit; background: transparent; }
  .field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.01em;
    padding-right: 4px;
    transition: color .2s ease;
  }
  .field.field-select select:has(option[value=""]:checked) {
    color: var(--muted);
    font-weight: 500;
  }
  .field.field-select select option {
    color: var(--text);
    font-weight: 500;
    background: var(--white);
  }
  .icon { color: var(--blue-dark); flex: 0 0 auto; display: grid; place-items: center; }
  .icon svg { width: 22px; height: 22px; display: block; }
  .search-card button { border: 0; background: var(--blue); color: var(--white); border-radius: 8px; padding: 20px 30px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 12px 22px rgba(46,82,228,.25); }
  .popular { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; font-size: 14px; }
  .popular strong { margin-right: 4px; }
  .popular a { color: var(--blue); background: #EEF2FF; padding: 8px 16px; border-radius: 999px; font-weight: 700; }

  .benefits {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 44px 0 26px;
    align-items: stretch;
    background: var(--white);
  }
  .benefits.portal-container::before,
  .benefits.portal-container::after {
    content: none;
    display: none;
  }
  .benefit-card {
    display: flex;
    gap: 20px;
    align-items: center;
    min-width: 0;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(9,27,79,.04);
  }
  .benefit-card > div:last-child { min-width: 0; }
  .benefit-card h3 { margin: 0 0 8px; font-size: 17px; }
  .benefit-card p { margin: 0; color: var(--muted); line-height: 1.45; }
  .circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
  }
  .circle svg { width: 26px; height: 26px; display: block; }

  @media (min-width: 1280px) {
    .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  .blue { background: var(--blue); } .green { background: var(--green); } .yellow { background: var(--yellow); }

  .jobs { padding: 6px 0 70px; }
  .section-title { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 18px; }
  .section-title h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
  .section-title a { color: var(--blue); font-weight: 800; }
  .job-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .job-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-height: 150px; display: grid; grid-template-columns: 58px 1fr; gap: 18px; box-shadow: 0 10px 28px rgba(9,27,79,.04); }
  .company-mark { width: 52px; height: 52px; border-radius: 50%; background: #050505; color: #fff; display: grid; place-items: center; font-weight: 800; }
  .company-mark.kg { color: #244899; background: #F3F5FA; border-radius: 10px; }
  .company-mark.red { background: #D20B20; border-radius: 8px; font-size: 13px; }
  .company-mark.city { background: #16A8E4; }
  .job-info h3 { margin: 0 0 8px; font-size: 16px; }
  .job-info p, .job-info span { margin: 0 0 7px; color: var(--muted); font-size: 14px; display: block; }
  .job-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .tag { padding: 7px 11px; border-radius: 6px; font-weight: 800; font-size: 13px; }
  .green-tag { color: var(--green); background: #EAF6E4; }
  .yellow-tag { color: #C88E00; background: #FFF2CF; }
  small { color: #8A94AD; }

  @media (max-width: 1180px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { padding: 56px 32px; }
    .hero-image { display: none; }
    .job-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 760px) {
    .portal-container { width: min(100% - 32px, 1280px); }
    .topbar {
      padding: 10px 12px;
      gap: 8px;
    }
    .brand-area { gap: 6px; }
    .divider { height: 28px; }
    .logo-governo { width: 68px; max-height: 32px; }
    .logo-prefeitura { width: 60px; max-height: 28px; }
    .logo-bc { width: 82px; max-height: 26px; }
    .nav-menu { display: none; }
    .actions { margin-left: auto; }
    .topbar .btn { padding: 8px 10px; font-size: 11px; }
    .hero-content { padding: 40px 20px; }
    .search-card {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      min-height: auto;
    }
    .search-card .field {
      width: 100%;
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }
    .search-card button { width: 100%; }
    .benefits, .job-grid { grid-template-columns: 1fr; }
    .section-title { align-items: flex-start; gap: 12px; flex-direction: column; }
  }

  .portal-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .portal-modal[hidden] {
    display: none;
  }

  .portal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 27, 85, .55);
  }

  .portal-modal-dialog {
    position: relative;
    width: min(520px, 100%);
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    z-index: 1;
  }

  .portal-modal-dialog h2 {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--blue-dark);
  }

  .portal-modal-dialog p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.5;
  }

  .portal-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .portal-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .portal-modal-actions .btn {
    flex: 1 1 200px;
    text-align: center;
    border: 0;
    cursor: pointer;
  }

  .portal-form-page {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
    min-height: calc(100vh - 112px);
    padding: 48px 0 72px;
  }

  .portal-form-section {
    max-width: 760px;
  }

  .portal-form-card,
  .portal-alert {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
  }

  .portal-form-card h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 44px);
    color: var(--blue-dark);
  }

  .portal-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
  }

  .portal-form-field {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--blue-dark);
  }

  .portal-form-field input,
  .portal-form-field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 16px;
    font: inherit;
    color: var(--text);
    background: var(--white);
  }

  .portal-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .portal-form-actions .btn {
    border: 0;
    cursor: pointer;
    text-align: center;
  }

  .portal-alert {
    margin-bottom: 20px;
  }

  .portal-alert ul {
    margin: 0;
    padding-left: 20px;
  }

  .portal-alert-error {
    border-color: #F2B8B5;
    background: #FFF4F3;
    color: #8A1C1C;
  }

  .portal-alert-success {
    border-color: #B8E0B0;
    background: #F4FBF2;
  }

  .portal-alert-success h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--blue-dark);
  }

  .portal-alert-success p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.5;
  }

  body.portal-modal-open {
    overflow: hidden;
  }

  .nav-menu .nav-active {
    color: var(--blue);
  }

  .portal-login-section {
    max-width: 980px;
  }

  .portal-form-card .subtitle {
    margin: 0 0 28px;
    max-width: none;
    font-size: 16px;
  }

  .portal-login-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: stretch;
    margin-top: 8px;
  }

  .portal-login-divider {
    width: 1px;
    background: var(--line);
    align-self: stretch;
  }

  .portal-form-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
  }

  .portal-form-links a {
    color: var(--blue);
  }

  .portal-govbr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    height: 100%;
    padding: 8px 0;
  }

  .portal-govbr-panel h2 {
    margin: 0;
    font-size: 20px;
    color: var(--blue-dark);
  }

  .portal-govbr-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 15px;
  }

  .portal-govbr-panel img {
    max-width: 180px;
    height: auto;
  }

  .btn-govbr {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 100em;
    border: 0;
    background: #168821;
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 22px rgba(22, 136, 33, .22);
  }

  .btn-govbr:hover,
  .btn-govbr:focus {
    background: #3B9B45;
    color: var(--white);
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(59, 155, 69, .28);
  }

  @media (max-width: 760px) {
    .portal-login-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .portal-login-divider {
      width: 100%;
      height: 1px;
    }
  }

  .portal-cadastro-section {
    max-width: 860px;
  }

  .portal-cadastro-govbr-card {
    margin-bottom: 24px;
  }

  .portal-cadastro-form .form-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 0;
  }

  .portal-cadastro-form .form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 0;
    min-width: 0;
  }

  .portal-cadastro-form .col-md-12 { grid-column: span 12; }
  .portal-cadastro-form .col-md-10 { grid-column: span 10; }
  .portal-cadastro-form .col-md-7 { grid-column: span 7; }
  .portal-cadastro-form .col-md-6 { grid-column: span 6; }
  .portal-cadastro-form .col-md-4 { grid-column: span 4; }
  .portal-cadastro-form .col-md-3 { grid-column: span 3; }
  .portal-cadastro-form .col-md-1 { grid-column: span 1; }

  .portal-cadastro-form label {
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 14px;
  }

  .portal-cadastro-form .form-control {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 16px;
    font: inherit;
    color: var(--text);
    background: var(--white);
  }

  .portal-cadastro-form .form-control:focus {
    outline: 0;
    border-color: var(--blue-soft);
    box-shadow: 0 0 0 3px rgba(59, 127, 214, .15);
  }

  .portal-cadastro-form select.form-control {
    cursor: pointer;
  }

  .portal-form-section-title {
    margin: 28px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    color: var(--blue-dark);
    font-weight: 700;
  }

  .portal-password-rules {
    grid-column: span 12;
    padding: 16px 18px;
    border-radius: 10px;
    background: #FFF8F0;
    border: 1px solid #F5DFC4;
    color: #7A4E12;
    font-size: 14px;
    line-height: 1.5;
  }

  .portal-password-rules ul {
    margin: 8px 0 0;
    padding-left: 20px;
  }

  .portal-cadastro-form .float-right {
    margin-left: auto;
  }

  .portal-cadastro-form .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #F2B8B5;
    border-radius: 8px;
    background: #FFF4F3;
    color: #8A1C1C;
    cursor: pointer;
  }

  .portal-cadastro-form .btn-danger:hover {
    background: #FCEAE9;
  }

  .portal-cadastro-form .d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
  }

  .portal-cadastro-form #telefone_principal_div,
  .portal-cadastro-form [id^="email_container_"],
  .portal-cadastro-form [id^="telefone_container_"] {
    width: 100%;
  }

  .portal-cadastro-required-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
  }

  @media (max-width: 760px) {
    .portal-cadastro-form .col-md-6,
    .portal-cadastro-form .col-md-7,
    .portal-cadastro-form .col-md-4,
    .portal-cadastro-form .col-md-3,
    .portal-cadastro-form .col-md-10,
    .portal-cadastro-form .col-md-1 {
      grid-column: span 12;
    }
  }

  .portal-loading {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .portal-loading[hidden] {
    display: none;
  }

  .portal-loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 27, 85, .45);
  }

  .portal-loading-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: min(320px, 100%);
    padding: 28px 32px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
  }

  .portal-loading-dialog p {
    margin: 0;
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 15px;
  }

  .portal-loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #E6EAF4;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: portal-loading-spin .8s linear infinite;
  }

  @keyframes portal-loading-spin {
    to { transform: rotate(360deg); }
  }

  body.portal-loading-open {
    overflow: hidden;
  }
