.pesantren-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  margin: 0;
  padding: 0;
  background: #f7faf9;
  color: #13272e;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 4vh, 2.5rem);
  padding: clamp(1.5rem, 6vh, 4rem) clamp(1.75rem, 6vw, 6rem);
  overflow: hidden;
  color: #f4fffd;
  background:
    radial-gradient(ellipse at 85% 85%, #094c45 0%, transparent 60%),
    linear-gradient(150deg, #07171f, #102c30);
}

.auth-brand-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .24;
  background-image: radial-gradient(#79abac 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, transparent 25%, #000 85%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.auth-brand img {
  flex: none;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.auth-brand-copy p {
  max-width: 28ch;
  margin-bottom: 0;
  color: #c2dbd9;
  font-size: 1rem;
  line-height: 1.65;
}

.auth-brand-copy .auth-brand-title {
  max-width: 13ch;
  margin-bottom: 1rem;
  color: #f4fffd;
  font-size: clamp(2.1rem, min(4.9vw, 8vh), 4.6rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: min(100%, 390px);
  height: clamp(92px, 24vh, 220px);
  isolation: isolate;
}

.auth-visual-ring {
  position: absolute;
  z-index: -1;
  width: min(78%, 300px);
  height: 88%;
  border: 1px solid #83edd74d;
  border-radius: 50%;
  box-shadow: 0 0 0 14px #76e7d015, 0 0 0 31px #76e7d00b;
  transform: rotate(-15deg);
}

.auth-visual-card {
  position: relative;
  width: min(62%, 235px);
  height: min(84%, 145px);
  padding: clamp(12px, 2vw, 23px);
  border: 1px solid #99f3da70;
  border-radius: 18px;
  background: linear-gradient(140deg, #d5fff040, #10816c44 60%, #0b423c);
  color: #bafce9;
  box-shadow: 12px 18px 45px #041b20ab;
  transform: rotate(-9deg);
}

.auth-visual-card i {
  font-size: clamp(1.45rem, 4.2vh, 2.5rem);
  line-height: 1;
}

.auth-visual-lines {
  position: absolute;
  right: 10%;
  bottom: 16%;
  display: grid;
  justify-items: end;
  gap: 6px;
  width: 45%;
}

.auth-visual-lines span {
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background: #bafce98c;
}

.auth-visual-lines span + span {
  width: 60%;
  background: #bafce94d;
}
.auth-access {
  margin: auto 0 0;
  color: #d0e7e2;
  font-size: .875rem;
}

.auth-access i {
  margin-right: .3rem;
  color: #a6f4d9;
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vh, 3.25rem) clamp(1.25rem, 5vw, 4rem);
}

.auth-form-content {
  width: min(100%, 400px);
}

.auth-form-content h1 {
  margin: 0 0 clamp(1rem, 4vh, 2rem);
  color: #12282d;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
}

.auth-form {
  display: grid;
  gap: 1.25rem;
}

.auth-field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 700;
}

.auth-field .form-control {
  min-height: 50px;
  border: 1px solid #a6b9bd;
  border-radius: 10px;
  background: #f8fbfb;
  color: #13272e;
  font-size: 1rem;
}

.auth-field .form-control:focus {
  border-color: #086b59;
  box-shadow: 0 0 0 3px #086b5926;
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 3.4rem;
}

.auth-password-toggle {
  position: absolute;
  inset: 3px 3px 3px auto;
  width: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #36575b;
  font-size: 1.2rem;
}

.auth-password-toggle:hover {
  background: #e8f1ef;
}

.auth-field small {
  display: inline-block;
  margin-top: .4rem;
  color: #466065;
}

.auth-submit.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 50px;
  margin-top: .4rem;
  border-radius: 10px;
  background: #086352;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.auth-submit.btn:hover {
  background: #064c40;
  color: #fff;
}

.auth-submit.btn:focus-visible,
.auth-password-toggle:focus-visible {
  outline: 2px solid #086352;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-brand-panel {
    gap: .65rem;
    padding: clamp(.9rem, 3vh, 1.75rem) clamp(1.25rem, 6vw, 2rem);
  }

  .auth-brand img {
    width: 42px;
    height: 42px;
  }

  .auth-brand-copy,
  .auth-visual {
    display: none;
  }
}

@media (max-height: 660px) {
  .auth-brand-panel {
    gap: .85rem;
  }

  .auth-visual {
    height: clamp(70px, 17vh, 110px);
  }

  .auth-form {
    gap: .85rem;
  }

  .auth-field .form-control,
  .auth-submit.btn {
    min-height: 44px;
  }
}

@media (max-height: 480px) {
  .auth-visual,
  .auth-brand-copy > p + p {
    display: none;
  }
}
