:root {
  --red: #d71920;
  --red-dark: #9f1117;
  --ink: #33353a;
  --muted: #6e7078;
  --line: #d6d8dc;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.asikmas-login {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #f7f7f8;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(390px, 44%) minmax(560px, 56%);
  min-height: 100vh;
}

.login-intro {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, rgba(224, 28, 34, .88), rgba(145, 7, 13, .96)),
    url("../img/lawang-sewu-login.png") center / cover no-repeat;
  clip-path: polygon(0 0, 89% 0, 75% 11%, 90% 24%, 77% 35%, 100% 49%, 82% 62%, 96% 74%, 74% 100%, 0 100%);
}

.login-intro::before,
.login-intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-intro::before {
  inset: 0;
  background:
    linear-gradient(45deg, transparent 35%, rgba(255, 67, 71, .18) 35%, rgba(255, 67, 71, .18) 54%, transparent 54%),
    linear-gradient(135deg, transparent 14%, rgba(110, 0, 5, .12) 14%, rgba(110, 0, 5, .12) 30%, transparent 30%);
}

.login-intro::after {
  width: 210px;
  height: 210px;
  bottom: -92px;
  left: -92px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 27px rgba(255, 255, 255, .07), 0 0 0 55px rgba(255, 255, 255, .08);
}

.intro-pattern {
  position: absolute;
  top: 44px;
  right: 28%;
  width: 80px;
  height: 80px;
  opacity: .55;
  background-image: radial-gradient(circle, #fff 2px, transparent 2.5px);
  background-size: 22px 22px;
}

.intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 9vh 21% 8vh 7.5%;
}

.intro-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: 0 5px 14px rgba(73, 0, 2, .22);
}

.intro-subtitle {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.24;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  font-size: 21px;
  box-shadow: 0 7px 18px rgba(82, 0, 3, .2);
}

.login-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  margin-left: -9vw;
  overflow: hidden;
  padding: 36px 6% 28px 13%;
  background:
    radial-gradient(circle at 56% 37%, #fff 0, #fff 36%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(135deg, #fff 0, #f8f8f9 62%, #fff 100%);
}

.login-main::before,
.login-main::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 230px;
  height: 48px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(228, 230, 233, .15), rgba(215, 218, 222, .55));
  transform: rotate(-45deg);
}

.login-main::before {
  right: -70px;
  bottom: 83px;
}

.login-main::after {
  right: -115px;
  bottom: 5px;
}

.dots {
  position: absolute;
  width: 130px;
  height: 130px;
  opacity: .22;
  background-image: radial-gradient(circle, #adb0b6 2.1px, transparent 2.5px);
  background-size: 20px 20px;
}

.dots-top {
  top: -3px;
  right: 15px;
}

.login-content {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  margin: auto;
  text-align: center;
}

.brand-header {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.city-logo {
  width: auto;
  height: clamp(65px, 7.5vh, 92px);
  object-fit: contain;
}

.asikmas-logo {
  width: min(300px, 68%);
  height: auto;
}

.welcome-copy {
  margin: clamp(20px, 3vh, 34px) 0 16px;
}

.welcome-copy h1 {
  margin: 0 0 8px;
  color: #3a3b3f;
  font-size: clamp(27px, 2.5vw, 35px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.welcome-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.45;
}

.login-card {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 20px 22px 19px;
  border: 1px solid rgba(220, 222, 226, .8);
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(38, 39, 44, .11);
}

#login_alert:not(:empty) {
  margin-bottom: 15px;
}

#login_alert .alert {
  margin: 0;
  border-radius: 9px;
  font-size: 13px;
  text-align: left;
}

.input-group-custom {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-group-custom:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, .11);
}

.input-icon {
  display: grid;
  flex: 0 0 47px;
  height: 29px;
  place-items: center;
  border-right: 1px solid #e0e1e4;
  color: #383a3e;
  font-size: 20px;
}

.input-group-custom input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
}

.input-group-custom input::placeholder {
  color: #858790;
}

.password-toggle {
  display: grid;
  flex: 0 0 42px;
  height: 100%;
  padding: 0;
  place-items: center;
  border: 0;
  outline: 0;
  color: #65676d;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}

.password-toggle:focus-visible {
  color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(105deg, #e51c23, #c90e15);
  box-shadow: 0 10px 22px rgba(201, 14, 21, .2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.login-button i {
  font-size: 22px;
  transition: transform .2s ease;
}

.login-button:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(201, 14, 21, .3);
  transform: translateY(-1px);
}

.login-button:hover i {
  transform: translateX(4px);
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #74767d;
  font-size: 12px;
}

.security-note i {
  color: #f02a30;
  font-size: 18px;
}

.login-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 26px auto 0;
  color: #777980;
  font-size: 11px;
}

.login-footer p {
  margin: 0;
  white-space: nowrap;
}

.login-footer span {
  width: 70px;
  height: 1px;
  background: rgba(215, 25, 32, .35);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 36% 64%;
  }

  .login-intro {
    clip-path: polygon(0 0, 86% 0, 100% 12%, 85% 26%, 100% 40%, 87% 55%, 100% 70%, 83% 100%, 0 100%);
  }

  .intro-content {
    padding-right: 17%;
  }

  .intro-title {
    font-size: 38px;
  }

  .intro-subtitle {
    font-size: 22px;
  }

  .feature-list {
    font-size: 14px;
  }

  .login-main {
    margin-left: -5vw;
    padding-left: 11%;
  }
}

@media (max-width: 767px) {
  body.asikmas-login {
    background: #fff;
  }

  .login-shell {
    display: block;
  }

  .login-intro {
    display: none;
  }

  .login-main {
    min-height: 100vh;
    margin: 0;
    padding: 28px 20px 22px;
  }

  .login-content {
    width: min(100%, 480px);
  }

  .city-logo {
    height: 62px;
  }

  .asikmas-logo {
    width: min(255px, 72%);
  }

  .welcome-copy {
    margin: 25px 0 18px;
  }

  .welcome-copy h1 {
    font-size: 26px;
  }

  .welcome-copy p {
    font-size: 14px;
  }

  .login-card {
    width: min(100%, 380px);
    padding: 18px 16px;
  }

  .input-group-custom,
  .login-button {
    min-height: 47px;
    height: 47px;
  }

  .login-footer {
    margin-top: 26px;
    gap: 12px;
  }

  .login-footer span {
    width: 28px;
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .login-main {
    justify-content: flex-start;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .city-logo {
    height: 68px;
  }

  .asikmas-logo {
    width: 275px;
  }

  .brand-header {
    gap: 10px;
  }

  .welcome-copy {
    margin: 18px 0 13px;
  }

  .login-card {
    padding: 18px 22px;
  }

  .input-group-custom,
  .login-button {
    min-height: 46px;
    height: 46px;
  }

  .input-group-custom {
    margin-bottom: 13px;
  }

  .security-note {
    margin-top: 12px;
  }

  .login-footer {
    margin-top: 16px;
  }
}
