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

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

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

.form__back-home {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 75px;
  left: 75px;
  color: var(--text-secondary-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.form__back-home:hover {
  opacity: 1;
  color: var(--color-primary);
  transform: translateX(-2px);
}

.form__back-home svg {
  width: 18px;
  height: 18px;
}

.form__title {
  font-size: 2.4rem;
  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;
  width: 80%;
}

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

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

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

.form__input {
  color: var(--text-primary-dark);
  padding: 12px 45px 12px 20px;
  width: 100%;
  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);
}

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

.form__forward-password {
  width: 80%;
  display: flex;
  justify-content: flex-end;
}

.form__forward-password a {
  font-size: 0.95rem;
  color: var(--text-primary-dark);
  text-decoration: none;
}

.form__forward-password:hover a {
  color: var(--color-primary);
}

.form__button-login {
  width: 80%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: var(--color-primary);
  color: white;
  border-radius: 15px;
  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;
}

.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);
}

.second-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(100% 0%, 100% 49%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
}

.second-part figure {
  width: 70%;
  margin-right: 7.5%;
}

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

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

.form__button-register {
  width: 80%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: var(--color-primary);
  color: white;
  border-radius: 15px;
  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__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 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
  text-align: center;
}

.form__method-selector input[type="radio"]:checked + label {
  border-color: #007bff;
  background-color: #f0f7ff;
  color: #007bff;
}

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

.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 a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-primary);
  cursor: pointer;
}

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

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal__box {
  position: relative;
  z-index: 100000;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  margin: auto;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalEntrada 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  font-family: inherit;
}

.modal__subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.modal__qrcode-container {
  text-align: center;
  margin: 1rem 0;
}

.modal__qrcode-img {
  width: 200px;
  height: 200px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin: 0 auto 1.5rem auto;
  display: block;
}

@keyframes modalEntrada {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 1368px) {
  .form {
    max-width: 600px;
  }
}

@media (max-width: 1024px) {
  .form {
    max-width: 450px;
    padding: 20px;
  }

  .second-part {
    width: 45%;
    clip-path: none;
    border-radius: 40px 0 0 40px;
  }

  .first-part {
    width: 55%;
  }
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  .second-part {
    display: none;
  }

  .first-part {
    width: 100%;
    min-height: 100vh;
  }

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

  .form__input-wrapper,
  .form__button-login,
  .form__button-register,
  .form__method-selector,
  .form__forward-password {
    width: 100%;
  }

  .form__title {
    font-size: 1.8rem;
  }

  .form__subtitle {
    width: 100%;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .form {
    max-width: 95%;
    padding: 15px;
    gap: 12px;
  }

  .form__title {
    font-size: 1.6rem;
  }

  .form__subtitle {
    font-size: 0.95rem;
  }

  .form__input-wrapper {
    width: 100%;
  }

  .form__button-login,
  .form__button-register,
  .form__method-selector,
  .form__forward-password {
    width: 100%;
  }

  .form__otp-input {
    width: 38px;
    height: 48px;
    font-size: 20px;
  }

  .second-part figure {
    width: 80%;
  }

  .second-part figcaption {
    font-size: 1.2rem;
  }
}
