/* Configurações Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
}

body {
  height: 100vh;
  width: 100%;
}

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

.first-part {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

.form {
  display: flex;
  gap: 15px; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 500px;
  padding: 25px;
}

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

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

/* Inputs Padronizados */
.form__input-wrapper {
  position: relative;
  width: 80%;
  gap: 4px;
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

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

.form__label {
  margin-left: 4%;
  font-size: 0.95rem;
  color: var(--text-primary-dark);
}

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

.form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.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__forward-password {
  width: 80%;
  text-align: right;
  text-decoration: none;
  margin-top: -5px;
}

.form__forward-password p {
  font-size: 0.85rem;
  color: var(--text-primary-dark);
}

.form__forward-password:hover p {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Botão de Login */
.form__button-login {
  width: 80%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: var(--color-primary);
  color: white;
  border-radius: 25px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

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

.form__create-account {
  margin-top: 15px;
  font-size: 1rem;
}

.form__create-account a {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.form__create-account a:hover {
  text-decoration: underline;
}

/* Erros */
.form__error {
  display: none;
  color: #e63946;
  font-size: 0.85rem;
  margin-left: 4%;
}

.form__error--active {
  display: block;
}

/* Lado Direito - Azul com Clip-path (second-part) */
.second-part {
  display: flex;
  flex-direction: column;
  align-items: end; /* Alinhado para a ponta do polígono */
  justify-content: center;
  text-align: center;
  width: 50%;
  background-color: var(--color-primary-dark);
  /* Seu clip-path original da direita */
  clip-path: polygon(100% 0%, 100% 49%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
}

.second-part figure {
  width: 70%;
  margin-right: 7.5%; /* Mantendo o respiro da sua versão original */
}

.second-part img {
  max-width: 100%;
  border-radius: 20px;
  margin-bottom: 30px;
  animation: float 6s ease-in-out infinite; /* Adicionei o float charmoso */
}

.second-part figcaption {
  font-size: 1.6rem;
  color: white;
}

/* Responsividade Básica */
@media (max-width: 1100px) {
  .form {
    min-width: 90%;
  }
  .second-part {
    clip-path: none;
    width: 40%;
  }
  .first-part {
    width: 60%;
  }
}

@media (max-width: 900px) {
  .second-part {
    display: none;
  }
  .first-part {
    width: 100%;
  }
}
