/* =======================================================================
   INTERMED.CSS DESIGN MODERNO (USA VARIÁVEIS DO NAV.CSS)
   ======================================================================= */

/* =======================================================================
   NOTIFICAÇÃO EVENTO
   ======================================================================= */

.box-notificacao {
  width: 100%;
  background: var(--color-yellow);
  padding: var(--spacing-sm) var(--spacing-xl);
}

.notificacao-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.notificacao-icon {
  display: flex;
  color: var(--color-primary-dark);
}

.notificacao-icon svg {
  width: 20px;
  height: 20px;
}

.box-notificacao p {
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
}

.box-notificacao a {
  background: var(--color-primary-dark);
  color: var(--color-yellow) !important;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.box-notificacao a:hover {
  background: var(--color-primary);
  transform: scale(1.05);
}

/* =======================================================================
   LAYOUT PRINCIPAL
   ======================================================================= */

body {
  background-color: var(--color-primary-dark) !important;
  width: 100%;
  overflow-x: hidden;
}

.content {
  width: 100%;
  position: relative;
  min-height: 100vh;
}

/* =======================================================================
   PARALLAX HERO SECTION Game of Thrones Style
   ======================================================================= */

.box-parallax {
  width: 100%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
  background: #000;
}

.box-parallax picture > img {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  z-index: 0;
  filter: brightness(1.1) contrast(1.1);
  will-change: transform;
  transform-origin: center center;
}

.box-parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.box-parallax::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: float 2.5s ease-in-out infinite;
  opacity: 0.4;
}

.hero-scroll-indicator svg {
  width: 16px;
  height: 16px;
  color: var(--color-yellow);
}

.box-titulo-hero {
  z-index: 3;
  text-align: center;
  margin: 10px 0;
}

.box-titulo-hero h3 {
  font-family: var(--font-family);
  font-size: clamp(0.65rem, 1.3vw, 1.2rem);
  color: var(--color-gray-light);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.box-titulo-hero span {
  font-family: var(--font-family);
  font-size: clamp(0.65rem, 1.3vw, 1.2rem);
  color: var(--color-yellow-dark);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.box-titulo-hero p {
  font-family: var(--font-family);
  font-size: clamp(0.65rem, 1.3vw, 0.82rem);
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}

/* =======================================================================
   HERO ANIMATIONS — disparadas por JS após loading fechar
   ======================================================================= */

.hero-anim {
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.hero-anim--up {
  transform: translateY(20px);
}

.hero-anim--down {
  transform: translateY(-14px);
}

.hero-anim--delay-0 {
  transition-delay: 0ms;
}
.hero-anim--delay-1 {
  transition-delay: 80ms;
}
.hero-anim--delay-2 {
  transition-delay: 160ms;
}

.hero-anim--visible {
  opacity: 1;
  transform: translateY(0);
}

/* =======================================================================
   LOGOTIPO TOPO Enhanced Game of Thrones Style
   ======================================================================= */

.box-logotipo-topo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  flex-direction: row;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 12px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.box-logotipo-topo img {
  width: auto;
  height: 80px;
  max-width: 260px;
  filter: drop-shadow(0 0 12px rgba(255, 237, 0, 0.2));
  transition: all 0.3s ease;
}

.box-logotipo-topo img:hover {
  transform: scale(1.03);
}

/* =======================================================================
   CONTAGEM REGRESSIVA
   ======================================================================= */

.box-contagem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

#divisoria {
  width: 80%;
  max-width: 600px;
  height: 2px;
  margin: 20px 0;
}

.countdown {
  display: flex;
  gap: var(--spacing-md);
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 237, 0, 0.15);
  backdrop-filter: blur(10px);
  min-width: 76px;
  transition: all 0.2s ease;
}

.countdown-item:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 237, 0, 0.35);
  transform: translateY(-2px);
}

.countdown-item span {
  color: var(--color-yellow);
  font-family: var(--font-family);
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.countdown-item p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* =======================================================================
   FORMULÁRIO DE INSCRIÇÃO
   ======================================================================= */

.box-formulario {
  width: 100%;
  background: var(--color-primary);
  display: flex;
  justify-content: center;
  padding: 50px 16px;
  position: relative;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.box-formulario::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 237, 0, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 237, 0, 0.04) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
}

.box-formulario::after {
  background-image: url("images/BACKGROUND/background.avif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  opacity: 0.07;
  filter: brightness(0.7) blur(3px);
  pointer-events: none;
}

.box-lote {
  margin: 0 0 var(--spacing-xl) 0;
  color: var(--color-white);
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  padding: 10px 0px;
  font-size: 0.7rem;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(255, 237, 0, 0.2);
  z-index: 2;
  position: relative;
}

.cadastro-form {
  width: 100%;
  max-width: 680px;
  z-index: 2;
  background: #1a1a1a63;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* =======================================================================
   SEÇÕES
   ======================================================================= */

.form-section {
  margin-bottom: 30px;
  padding-bottom: 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 237, 0, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-yellow);
}

.section-icon svg {
  width: 18px;
  height: 18px;
}

.section-header h2 {
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

/* =======================================================================
   TÍTULO DO FORMULÁRIO
   ======================================================================= */

.form-title {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.box-star {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.estrela {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: var(--color-yellow);
}

.estrela svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 2px 8px rgba(255, 237, 0, 0.4));
}

.form-title p {
  color: var(--color-white);
  font-family: var(--font-family);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  position: relative;
  margin: 0 0 var(--spacing-xs);
  letter-spacing: -0.01em;
}

.form-title h3 {
  color: var(--color-gray-light);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 400;
  position: relative;
  margin: 0;
}

/* =======================================================================
   INPUTS DO FORMULÁRIO
   ======================================================================= */

.form-row {
  margin-bottom: var(--spacing-md);
}

.form-row.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group span {
  font-size: 0.8rem;
  color: var(--color-gray-light);
}

.form-group label {
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 5px;
  opacity: 0.9;
}

.box-inputs span,
.box-inputs p,
.box-inputs label {
  color: var(--color-white);
  font-size: 0.78rem;
  margin-bottom: 5px;
  font-weight: 500;
  opacity: 0.9;
}

.form-group input,
.form-group select,
.box-inputs input,
.box-inputs select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  background: var(--color-primary-dark);
  color: var(--color-white);
  outline: none;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.form-group input::placeholder,
.box-inputs input::placeholder {
  color: var(--color-gray);
}

.form-group option,
.box-inputs option {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.box-inputs input:focus,
.box-inputs select:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.1);
}

.form-group input:disabled,
.form-group select:disabled,
.box-inputs input:disabled,
.box-inputs select:disabled {
  background-color: var(--color-gray-dark);
  color: var(--color-gray);
  cursor: not-allowed;
  opacity: 0.6;
}

/* =======================================================================
   UPLOAD DE FOTO
   ======================================================================= */

#box-foto {
  width: 100%;
}

/* =======================================================================
   CROP RESULT — preview da foto após detecção
   ======================================================================= */
.crop-result {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  animation: fadeSlideIn 0.25s ease;
}

.crop-result.hidden {
  display: none;
}

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

.crop-result-photo {
  position: relative;
  flex-shrink: 0;
}

.crop-result-photo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 237, 0, 0.28);
  box-shadow:
    0 0 0 4px rgba(255, 237, 0, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.3);
  display: block;
}

.crop-result-badge {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 237, 0, 0.92);
  color: #111;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.crop-result-badge svg {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

.crop-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crop-result-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
}

.crop-result-desc {
  font-size: 0.71rem;
  color: var(--color-gray-light);
  margin: 0;
  line-height: 1.5;
}

/* =======================================================================
   UPLOAD WRAP — filepond + critérios
   ======================================================================= */
.foto-upload-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foto-upload-criteria {
  margin: 10px 0px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255, 237, 0, 0.03);
  border: 1px solid rgba(255, 237, 0, 0.09);
  border-radius: var(--radius-md);
}

.criteria-icon {
  color: var(--color-yellow);
  flex-shrink: 0;
  display: flex;
  margin-top: 1px;
}

.criteria-icon svg {
  width: 12px;
  height: 12px;
}

.foto-upload-criteria ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foto-upload-criteria li {
  color: var(--color-white);
  font-size: 0.66rem;
  opacity: 0.6;
  padding-left: 8px;
  position: relative;
}

.foto-upload-criteria li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--color-yellow);
  opacity: 1;
}

.face-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.face-status.hidden {
  display: none;
}

.face-status-icon {
  display: flex;
  width: 24px;
  height: 24px;
}

.face-status-icon svg {
  width: 100%;
  height: 100%;
}

.face-status-text {
  flex: 1;
}

.face-status.status-loading {
  background: rgba(255, 237, 0, 0.1);
  border: 1px solid rgba(255, 237, 0, 0.3);
  color: var(--color-yellow);
}

.face-status.status-loading .face-status-icon svg {
  animation: spin 1s linear infinite;
}

.face-status.status-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.face-status.status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

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

.foto-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
  width: 100%;
}

.foto-upload-area:hover {
  border-color: rgba(255, 237, 0, 0.3);
}

.filepond--root {
  margin-bottom: 0;
  font-family: var(--font-family);
}

.filepond--panel-root {
  background: var(--color-primary-light);
}

.filepond--drop-label {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.filepond--drop-label label {
  cursor: pointer;
}

.filepond--label-action {
  color: var(--color-yellow);
  text-decoration: underline !important;
}

.filepond--file-action-button {
  cursor: pointer;
}

/* =======================================================================
   ALOJAMENTO
   ======================================================================= */

#alojamento {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: var(--spacing-lg) 0;
}

#alojamento > p {
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--color-white);
  font-weight: 500;
  margin: 0;
}

.box-switch {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

.box-switch p {
  margin: 0;
  color: var(--color-white);
  font-size: 0.9rem;
}

/* =======================================================================
   SWITCH TOGGLE
   ======================================================================= */

.form-group-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-label {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
}

.switch {
  position: relative;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-gray-dark);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.switch input:checked + .slider {
  background: var(--color-yellow);
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
  background: var(--color-primary-dark);
}

.switch input:disabled:checked + .slider {
  background: rgba(255, 237, 0, 0.3);
  cursor: not-allowed;
}

.switch input:disabled:not(:checked) + .slider {
  background: var(--color-gray);
  cursor: not-allowed;
}

.termos-switch {
  flex-direction: row;
  gap: var(--spacing-md);
}

.termos-switch .switch-label {
  font-size: 0.85rem;
  line-height: 1.5;
}

.termos-switch .switch-label a {
  color: var(--color-yellow);
  text-decoration: underline !important;
}

.termos-switch .switch-label a:hover {
  color: var(--color-yellow-light);
}

/* =======================================================================
   ALOJAMENTO SIM / NÃO
   ======================================================================= */
.alojamento-opcoes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aloj-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  user-select: none;
  min-width: 24px;
  text-align: center;
}

.aloj-nao {
  color: var(--color-white);
  opacity: 1;
}

.aloj-sim {
  color: var(--color-yellow);
  opacity: 0.3;
}

/* =======================================================================
   FORM ACTIONS
   ======================================================================= */

/* =======================================================================
   MENSAGENS DE STATUS DO SUBMIT
   ======================================================================= */
.submit-status {
  height: 22px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.submit-status-msg {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  position: absolute;
  width: 100%;
  left: 0;
}

.submit-status-msg.visible {
  opacity: 0.75;
  transform: translateY(0);
}

.submit-status-msg.leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.form-actions {
  text-align: center;
  padding-top: 0;
  position: relative;
}

.btn-cadastrar {
  width: 100%;
  padding: 11px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-family);
  background: var(--color-yellow);
  color: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  box-shadow: 0 3px 12px rgba(255, 237, 0, 0.2);
}

.btn-cadastrar:hover:not(:disabled) {
  background: var(--color-yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(255, 237, 0, 0.5);
}

.btn-cadastrar:disabled,
.insc-closed {
  background: var(--color-gray-dark) !important;
  color: var(--color-gray) !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.load-box .loader-spinner {
  left: calc(50% - 15px) !important;
  top: calc(50% - 15px) !important;
}

/* =======================================================================
   FILEPOND CUSTOMIZAÇÃO
   ======================================================================= */

.filepond--root {
  margin-bottom: 0;
  font-family: var(--font-family);
}

.filepond--panel-root {
  background: var(--color-primary-light);
}

.filepond--drop-label {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.filepond--drop-label label {
  cursor: pointer;
}

.filepond--label-action {
  color: var(--color-yellow);
  text-decoration: underline !important;
}

.filepond--file-action-button {
  cursor: pointer;
}

/* =======================================================================
   ESTADOS DE ERRO
   ======================================================================= */

.input_error,
.input-error {
  border-color: #ef4444 !important;
  animation: shake 0.4s ease;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

/* =======================================================================
   HIDDEN
   ======================================================================= */

.hidden {
  display: none !important;
}

/* =======================================================================
   RESPONSIVO
   ======================================================================= */

@media only screen and (max-width: 1120px) {
  .box-parallax {
    min-height: 480px;
  }

  .box-logotipo-topo {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .box-logotipo-topo img {
    height: 65px;
    max-width: 260px;
  }

  .cadastro-form {
    padding: 22px 18px;
  }

  .countdown-item {
    min-width: 68px;
  }

  .countdown-item span {
    font-size: 1.6em;
  }
}

@media only screen and (max-width: 640px) {
  .box-notificacao .notificacao-content {
    flex-direction: row;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .box-parallax {
    min-height: 420px;
    padding: 20px 14px;
  }

  .box-logotipo-topo img {
    height: 60px;
    max-width: 200px;
  }

  .countdown {
    gap: var(--spacing-sm);
  }

  .countdown-item {
    min-width: 60px;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .countdown-item span {
    font-size: 1.4em;
  }

  .countdown-item p {
    font-size: 0.6rem;
  }

  .cadastro-form {
    padding: 16px 12px;
  }

  .form-title p {
    font-size: 1rem;
  }

  .form-row.two-columns {
    grid-template-columns: 1fr;
  }

  .form-group-switch {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .termos-switch {
    flex-direction: row;
  }

  .crop-result {
    flex-direction: column;
    text-align: center;
  }

  .crop-result-info {
    align-items: center;
  }

  .box-formulario {
    padding: 30px 10px;
  }
}

@media only screen and (max-width: 400px) {
  .box-parallax {
    min-height: 380px;
  }

  .box-logotipo-topo img {
    height: 60px;
  }

  .countdown-item {
    min-width: 52px;
    padding: 8px 10px;
  }

  .countdown-item span {
    font-size: 1.2em;
  }

  .countdown-item p {
    font-size: 0.55rem;
  }

  .section-header h2 {
    font-size: 0.82rem;
  }

  .form-group input,
  .form-group select {
    padding: 9px 10px;
    font-size: 0.85rem;
  }

  .btn-cadastrar {
    padding: 10px 16px;
    font-size: 0.78rem;
  }
}

/* =======================================================================
   PASSWORD INPUT
   ======================================================================= */

.input-password {
  position: relative;
  width: 100%;
}

.input-password input {
  padding-right: 50px !important;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-gray);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.toggle-password:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.toggle-password.active {
  color: var(--color-yellow);
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.toggle-password .eye-icon,
.toggle-password .eye-off-icon {
  transition: opacity 0.2s ease;
}

/* =======================================================================
   CAMPOS DO SISTEMA DADOS DO USUÁRIO LOGADO Integrado ao tema Game of Thrones do INTERMED
   ======================================================================= */

.campo-sistema {
  width: 100%;
  padding: 12px 14px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 8px);
  font-size: 0.95rem;
  background: var(--color-primary-dark, #0f0f0f);
  color: var(--color-white, #ffffff);
  font-family: var(
    --font-family,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif
  );
  font-weight: 400;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  position: relative;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.campo-sistema .lock-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--color-yellow, #ffed00);
  opacity: 0.6;
}

.campo-sistema:hover {
  border-color: rgba(255, 237, 0, 0.2);
  opacity: 1;
}

.campo-sistema:hover .lock-icon {
  opacity: 0.8;
}

.info-sistema {
  display: block;
  color: rgba(255, 237, 0, 0.5);
  font-size: 0.72rem;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

/* =======================================================================
   RESPONSIVO
   ======================================================================= */

@media (max-width: 768px) {
  .campo-sistema {
    padding: 10px 12px;
    font-size: 0.9rem;
    gap: 8px;
  }

  .campo-sistema .lock-icon {
    width: 14px;
    height: 14px;
  }

  .info-sistema {
    font-size: 0.7rem;
  }
}

/* =======================================================================
   INTEGRAÇÃO COM INPUTS NORMAIS
   ======================================================================= */

.form-group input,
.form-group .campo-sistema {
  min-height: 44px;
}

body.loading-active {
  overflow: hidden !important;
}

.loading {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  z-index: 9999;
  transition:
    opacity 0.5s ease-out,
    visibility 0.5s ease-out;
}

.loading-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo {
  height: 90px;
  opacity: 0;
  animation: fadeInLogo 0.6s ease-out forwards;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
  }
}

.loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: #ffed00;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
  border-top-color: rgba(255, 237, 0, 0.5);
  animation-delay: -0.5s;
}

.spinner-ring:nth-child(3) {
  border-top-color: rgba(255, 237, 0, 0.25);
  animation-delay: -1s;
}

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

.loading-frase {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 48px;
}

.loading-frase-parte1,
.loading-frase-parte2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
}

.loading-frase-parte1 {
  color: rgba(255, 255, 255, 0.55);
  animation: fadeInFrase1 0.6s ease-out 0.7s forwards;
}

.loading-frase-parte2 {
  color: #ffed00;
  animation: fadeInFrase2 0.7s ease-out 1.5s forwards;
}

@keyframes fadeInFrase1 {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFrase2 {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================================================
   LOADING SCREEN — MENSAGENS ROTATIVAS
   ======================================================================= */

.loading-msg-area {
  height: 40px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 300px;
  max-width: 80vw;
}

.loading-msg {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.6rem, 1.8vw, 0.72rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 200, 200, 0.65);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  position: absolute;
  width: 100%;
  left: 0;
}

.loading-msg.lm-visible {
  opacity: 0.72;
  transform: translateY(0);
}

.loading-msg.lm-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.loading.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =====================================================
   AVISO DE PAGAMENTO
   ===================================================== */
.aviso-pagamento {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px;
  padding: 8px 14px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary, #aaa);
  line-height: 1.4;
}

.aviso-pagamento svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #f5c518;
  opacity: 0.9;
}

.aviso-pagamento strong {
  color: #f5c518;
  font-weight: 600;
}
