.login-page {
  min-height: 100vh;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;

  background: #F5F1E8;
  color: #30352d;
}

/* LADO VISUAL */

.login-visual {
  position: relative;

  display: flex;
  align-items: flex-end;

  padding: 70px;

  background-image: url("../assets/images/depo1cortada.jpg");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;

  overflow: hidden;
}

.login-visual-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.58),
      rgba(0, 0, 0, 0.22),
      rgba(0, 0, 0, 0.08)
    );
}

.login-visual-content {
  max-width: 620px;

  position: relative;
  z-index: 1;
}

.login-visual-content span {
  display: block;

  margin-bottom: 16px;

  color: #F5F1E8;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.login-visual-content h1 {
  margin: 0 0 22px;

  color: #ffffff;

  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
}

.login-visual-content p {
  max-width: 520px;

  margin: 0;

  color: rgba(255, 255, 255, 0.82);

  font-size: 1.05rem;
  line-height: 1.75;
}

/* PAINEL */

.login-panel {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 48px;

  position: relative;

  box-sizing: border-box;
}

.login-back-link {
  position: absolute;
  top: 34px;
  left: 42px;

  color: #6B705C;
  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 700;

  transition: color 0.25s ease, transform 0.25s ease;
}

.login-back-link:hover {
  color: #3A506B;

  transform: translateX(-3px);
}

.login-card {
  width: min(440px, 100%);

  padding: 44px 38px;

  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(107, 112, 92, 0.16);
  border-radius: 34px;

  box-shadow: 0 26px 70px rgba(58, 80, 107, 0.13);

  box-sizing: border-box;
}

.login-logo {
  margin-bottom: 28px;

  display: flex;
  justify-content: center;
}

.login-logo img {
  width: 128px;
  height: auto;

  display: block;
}

.login-heading {
  margin-bottom: 30px;

  text-align: center;
}

.login-heading span {
  display: block;

  margin-bottom: 10px;

  color: #6B705C;

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-heading h2 {
  margin: 0 0 12px;

  color: #3A506B;

  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  font-weight: 500;
}

.login-heading p {
  margin: 0;

  color: rgba(48, 53, 45, 0.72);

  font-size: 0.95rem;
  line-height: 1.65;
}

/* FORM */

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 18px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #3A506B;

  font-size: 0.84rem;
  font-weight: 700;
}

.form-group input {
  width: 100%;

  padding: 14px 15px;

  background: rgba(245, 241, 232, 0.72);
  color: #30352d;

  border: 1px solid rgba(107, 112, 92, 0.2);
  border-radius: 16px;

  font-family: inherit;
  font-size: 0.94rem;

  outline: none;

  box-sizing: border-box;

  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input:focus {
  background: #ffffff;

  border-color: rgba(58, 80, 107, 0.52);

  box-shadow: 0 0 0 4px rgba(58, 80, 107, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  width: 42px;
  height: 42px;

  position: absolute;
  top: 50%;
  right: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  background: transparent;
  border: none;
  border-radius: 50%;

  cursor: pointer;
}

.toggle-eye {
  width: 22px;
  height: 14px;

  position: relative;

  display: block;

  border: 2px solid #6B705C;
  border-radius: 80% 20%;
  transform: rotate(45deg);

  transition: opacity 0.25s ease;
}

.toggle-eye::after {
  content: "";

  width: 6px;
  height: 6px;

  position: absolute;
  top: 50%;
  left: 50%;

  background: #6B705C;
  border-radius: 50%;

  transform: translate(-50%, -50%);
}

.password-toggle.is-visible .toggle-eye::before {
  content: "";

  width: 28px;
  height: 2px;

  position: absolute;
  top: 50%;
  left: 50%;

  background: #6B705C;
  border-radius: 999px;

  transform: translate(-50%, -50%) rotate(-90deg);
}

/* OPÇÕES */

.login-options {
  margin: 2px 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(48, 53, 45, 0.68);

  font-size: 0.84rem;
  font-weight: 600;

  cursor: pointer;
}

.remember-option input {
  accent-color: #6B705C;
}

.forgot-password {
  padding: 0;

  background: transparent;
  color: #6B705C;

  border: none;

  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;

  cursor: pointer;

  transition: color 0.25s ease;
}

.forgot-password:hover {
  color: #3A506B;
}

.login-submit {
  width: 100%;

  padding: 15px 22px;

  background: #3A506B;
  color: #F5F1E8;

  border: none;
  border-radius: 999px;

  font-size: 0.96rem;
  font-weight: 700;

  cursor: pointer;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.login-submit:hover {
  transform: translateY(-2px);

  opacity: 0.92;
}

.login-feedback {
  min-height: 22px;

  margin: 16px 0 0;

  color: #6B705C;

  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.login-feedback[data-type="error"] {
  color: #8a4b3f;
}

.login-feedback[data-type="success"] {
  color: #506344;
}

.login-feedback[data-type="info"] {
  color: #3A506B;
}

.login-helper-text {
  margin: 22px 0 0;

  color: rgba(48, 53, 45, 0.58);

  font-size: 0.86rem;
  text-align: center;
}

/* RESPONSIVO */

@media (max-width: 920px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 42vh;

    align-items: flex-end;

    padding: 120px 28px 42px;
  }

  .login-visual-content h1 {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .login-panel {
    min-height: auto;

    padding: 72px 22px 42px;
  }

  .login-back-link {
    top: 26px;
    left: 24px;
  }
}

@media (max-width: 520px) {
  .login-card {
    padding: 36px 24px;
    border-radius: 28px;
  }

  .login-logo img {
    width: 112px;
  }

  .login-heading h2 {
    font-size: 2rem;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}