main {
  display: flex;
  width: 100%;
  min-height: 100%;
}

.first-part {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  text-align: center;
  width: 50%;
  background-color: var(--color-primary-dark);
  clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 0 50%, 0% 0%);
}

.first-part figure {
  width: 70%;
  margin: 0 auto;
}

.first-part img {
  border-radius: 20px;
  margin-bottom: 30px;
  animation: float 6s ease-in-out infinite;
}

.first-part figcaption {
  font-size: 1.6rem;
  color: var(--text-primary-light);
}

.second-part {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 50%;
  min-height: 100vh;
}

.form {
  display: flex;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  padding: 25px 25px 5px 25px;
}

.form__progress-bar {
  width: 100%;
  height: 5px;
  background-color: var(--color-off-white);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.form__progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.form__title {
  font-size: 2.3rem;
  font-weight: 900;
  text-align: center;
  color: var(--text-primary-blue);
}

.form__subtitle {
  font-size: 1.1rem;
  color: var(--text-primary-dark);
  text-align: center;
  margin-bottom: 20px;
}

.form__input-wrapper {
  position: relative;
  width: 80%;
  gap: 2px;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form__label {
  margin-left: 2%;
  color: var(--text-primary-dark);
}

.form__input {
  color: var(--text-primary-dark);
  padding: 12px 45px 12px 20px;
  width: 100%;
  padding-right: 40px;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #d1d5db;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.form__input:focus {
  border-color: var(--color-primary);
}

.input-relative {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.form__inputIcon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.form__input--error {
  border-color: #e63946;
  background-color: #fff1f2;
}

.form__input-wrapper--terms {
  margin-top: 15px;
  margin-bottom: 20px;
}

.form__terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #444;
}

.form__terms-label input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form__terms-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.form__terms-text a:hover {
  text-decoration: underline;
}

.form__button-register {
  width: 80%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: var(--color-primary);
  color: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.3s;
  margin-top: 15px;
}

.form__button-register:hover {
  box-shadow: 0 0 5px var(--color-primary-light);
  color: var(--color-primary);
  background-color: var(--color-white);
}

.form__back-link {
  background-color: var(--color-white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--text-primary-blue);
}

.form__method-selector {
  display: flex;
  gap: 10px;
  margin: 15px 0 25px 0;
  width: 80%;
}

.form__method-selector input[type="radio"] {
  display: none;
}

.form__method-selector label {
  color: var(--text-primary-dark);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.form__method-selector input[type="radio"]:checked + label {
  border-color: var(--color-primary);
  background-color: var(--color-white);
  color: var(--color-primary);
}

.form__method-selector label:hover {
  border-color: #ccc;
  background-color: #f8f9fa;
}

.form__error {
  display: none;
  color: #e63946;
  font-size: 0.85rem;
  margin-top: 2px;
  animation: fadeInDown 0.5s ease-out;
}

.form__error--active {
  display: block;
}

.form__terms {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.form__terms .form__input {
  width: inherit;
}

.form__terms label,
a {
  font-size: 0.9rem;
}

/* Etapa 1 - Verificação de Celular */

.form__otp-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
}

.form__otp-input {
  width: 45px;
  height: 55px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.form__otp-input:focus {
  border-color: var(--color-primary);
  outline: none;
  background: var(--color-white);
}

.form__redirect-login {
  text-align: center;
  margin-top: 15px;
  font-size: 1rem;
}

.form__redirect-login a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-primary);
  cursor: pointer;
}

/* Etapa 2 - Seleção de Tipo de Pessoa */

.form__selection-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.form__selection-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.form__selection-card:hover {
  border-color: #007bff;
  background-color: #f8fbff;
  transform: translateY(-2px);
}

.form__selection-card__icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form__selection-card__icon img {
  width: 100%; /* Faz a imagem preencher a div */
  height: 100%; /* Faz a imagem preencher a div */
  object-fit: contain; /* Mantém a proporção sem cortar a imagem */
}

.form__selection-card__title {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.form__selection-card__desc {
  font-size: 0.85rem;
  color: #666;
}

/* Etapa 4 - Endereço; */
.form__row {
  display: flex;
  width: 80%;
  gap: 15px;
  margin-bottom: 10px;
}

.form__row .form__input-wrapper {
  width: 100%;
  margin-bottom: 0;
}

.form__input-wrapper--30 {
  flex: 0 0 30%;
}
.form__input-wrapper--40 {
  flex: 0 0 40%;
}
.form__input-wrapper--60 {
  flex: 0 0 60%;
}
.form__input-wrapper--70 {
  flex: 0 0 70%;
}

/* Etapa 5 - Documentação*/

.form__inputs-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form__file-wrapper {
  width: 80%;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form__file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 10px;
  background-color: #f8f9fa;
  border: 2px dashed #d1d5db;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.form__file-label:hover {
  border-color: var(--color-primary);
  background-color: #f0f7ff;
  transform: translateY(-2px);
}

.form__file-input {
  display: none;
}

.form__file-text {
  font-size: 0.95rem;
  color: var(--text-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.form__file-text::before {
  content: "📁";
  font-size: 1.5rem;
}

.form__file-label--active {
  border-style: solid;
  border-color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.05);
}

/* Adicionar Conta */

.form__selection-card {
  text-decoration: none;
}

.form__top-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 700px;
  margin-bottom: 8px;
}

.form__link-reset {
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--color-primary);
  animation: pulse 2s infinite;
}

.status-icon img {
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
  color: var(--color-primary);
  animation: pulse 2s infinite;
}

.form__button-conclusion {
  display: flex;
  text-decoration: none;
  width: fit-content;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: var(--color-primary);
  color: white;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.3s;
  margin-top: 15px;
}

.form__button-conclusion:hover {
  box-shadow: 0 0 5px var(--color-primary-light);
  color: var(--color-primary);
  background-color: var(--color-white);
}

.form__lista-documentos {
  min-width: 500px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.card__doc {
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fdfdfd;
  border-left: 5px solid var(--color-primary);
}

.card__doc .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__doc-badge {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eee;
  font-weight: bold;
}

.card__doc-badge-aprovado {
  background-color: #28a745;
  color: var(--text-primary-light);
}

.card__doc-badge-pendente {
  background-color: #ffc107;
  color: var(--text-primary-light);
}

.card__doc-badge-rejeitado {
  background-color: #dc3545;
  color: var(--text-primary-light);
}

.alerta-rejeicao {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #dc3545;
  color: #dc3545;
}

.btn-reupload {
  display: inline-block;
  margin-top: 8px;
  color: #dc3545;
  text-decoration: underline;
  font-weight: bold;
}

.doc__status {
  font-size: 0.85rem;
  color: red;
  opacity: 0.5;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease-out;
}

.modal-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.modal-card h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-card h3 span {
  color: #007bff;
}

.modal-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-footer {
  display: flex;
  gap: 12px;
}

.btn-modal {
  display: block;
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-modal--primary {
  background: #007bff;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-modal--secondary {
  background: #f1f3f5;
  color: #495057;
}

.modal-note {
  font-size: 12px;
  color: #aaa;
  margin-top: 20px;
}

.modal__form .form__input-wrapper {
  width: 100%;
}

@media (max-width: 1300px) {
  .form {
    min-width: 620px;
  }

  .form__title {
    font-size: 2.1rem;
  }

  .form__file-label {
    min-height: 90px;
  }

  .form__lista-documentos {
    min-width: 460px;
  }
}

@media (max-width: 1024px) {
  .first-part {
    clip-path: none;
    border-radius: 0px 40px 40px 0px;
  }

  .first-part figure {
    width: unset;
    margin: unset;
  }

  .form {
    min-width: 540px;
    padding: 22px;
  }

  .form__link-reset {
    margin-right: 10%;
  }

  .form__progress-bar {
    width: 80%;
  }

  .form__title {
    font-size: 1.9rem;
  }

  .form__subtitle {
    font-size: 1.05rem;
  }

  .form__row {
    gap: 10px;
  }

  .form__file-label {
    min-height: 85px;
  }

  .form__lista-documentos {
    min-width: 420px;
  }
}

@media (max-width: 768px) {
  .first-part {
    display: none;
  }

  .second-part {
    width: 100%;
  }

  .form {
    min-width: 100%;
    padding: 30px;
  }

  .form__title {
    font-size: 1.7rem;
  }

  .form__subtitle {
    font-size: 0.95rem;
  }

  .form__row {
    flex-direction: column;
    gap: 12px;
  }

  .form__input-wrapper--30,
  .form__input-wrapper--40,
  .form__input-wrapper--60,
  .form__input-wrapper--70 {
    flex: unset;
  }

  .form__file-wrapper {
    width: 100%;
  }

  .form__file-label {
    min-height: 60px;
  }

  .form__lista-documentos {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .form {
    padding: 16px;
  }

  .form__title {
    font-size: 1.5rem;
  }

  .form__subtitle {
    font-size: 0.9rem;
  }

  .form__input {
    padding: 10px 40px 10px 16px;
    font-size: 0.95rem;
  }

  .form__file-label {
    padding: 12px;
    min-height: 70px;
  }

  .form__file-text {
    font-size: 0.85rem;
  }

  .status-icon {
    font-size: 3rem;
  }

  .badge {
    font-size: 0.7rem;
  }
}
