/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(230, 75%, 56%);
  --first-color-light: hsl(230, 75%, 65%);
  --first-color-lighten: hsl(230, 75%, 74%);
  --title-color: hsl(230, 75%, 15%);
  --text-color: hsl(230, 48%, 15%);
  --text-color-light: hsl(230, 48%, 35%);
  --body-color: hsl(230, 60%, 99%);
  --container-color: hsl(230, 60%, 98%);
  --border-color: hsl(230, 40%, 85%);
  --white-color: #fff;

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 1.5rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: #000;
  color: var(--text-color);
}

input,
button {
  font-family: var(--body-font);
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

input {
  line-height: 1;
}

/*=============== NAV ===============*/
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-button {
  color: inherit;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav__logo-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav__logo-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

.nav__logo-button:active {
  transform: scale(0.98);
}

.nav__logo-img {
  height: 40px;
}

.nav__brand {
  color: var(--white-color);
  font-weight: 500;
  margin-left: 0.5rem;
  font-size: 1.25rem;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 1.45rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.24);
}

.nav__toggle:active {
  transform: scale(0.96);
}

.nav__link {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__button {
  padding: 0.5rem 1rem;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.3s;
}

.nav__button:hover {
  background-color: var(--first-color-light);
}

.nav__text {
  color: var(--white-color);
  font-weight: 500;
  margin-left: 0.5rem;
}
.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #555;
  pointer-events: none;
}

.input-icon input {
  padding-left: 2.5rem; /* beri space agar text tidak tertutup icon */
}

/*=============== LOGIN ===============*/
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.login__showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: center;
  gap: 2rem;
  width: min(100%, 920px);
  padding: 2rem;
  border: 1px solid rgba(34, 211, 238, 0.62);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(4, 10, 24, 0.28) 38%, rgba(4, 10, 24, 0.5)),
    rgba(0, 0, 0, 0.22);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.14),
    0 0 42px rgba(34, 211, 238, 0.24),
    0 24px 72px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(16px);
}

.login__slogan {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 360px;
  padding: 1rem;
}

.login__logo-slot {
  display: flex;
  align-items: flex-end;
  width: min(150px, 42vw);
  height: 120px;
  margin: 0 0 1.25rem;
}

.login__company-logo {
  width: min(150px, 42vw);
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.24));
}

.login__eyebrow {
  margin: 0 0 0.85rem;
  color: rgba(103, 232, 249, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login__slogan h2 {
  margin: 0;
  max-width: 430px;
  color: var(--white-color);
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(34, 211, 238, 0.36);
  white-space: nowrap;
}

.login__slogan-text {
  max-width: 390px;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.login__form {
  background: rgba(4, 10, 24, 0.42);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.88);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.28),
    0 0 28px rgba(34, 211, 238, 0.42),
    0 18px 54px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.login__title {
  font-size: var(--big-font-size);
  font-weight: 500;
  color: var(--white-color);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.46);
}

.login__inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.login__box {
  position: relative;
}

.login__input {
  width: 100%;
  padding: 1rem 2.5rem 1rem 3rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  color: var(--white-color);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.login__input:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(34, 211, 238, 0.96);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18), 0 0 18px rgba(34, 211, 238, 0.35);
}

.login__input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.login__box i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: rgba(103, 232, 249, 0.9);
  font-size: 1.25rem;
}

.login__button {
  width: 100%;
  padding: 1rem;
  background: rgba(34, 211, 238, 0.14);
  color: var(--white-color);
  border: 1px solid rgba(34, 211, 238, 0.88);
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: 500;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.26);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.login__button:hover {
  background-color: rgba(34, 211, 238, 0.26);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.48);
  transform: translateY(-1px);
}

.login__button:disabled {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  cursor: not-allowed;
}

/*=============== ALERT ===============*/
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: var(--small-font-size);
  text-align: center;
}

.alert-danger {
  background-color: hsl(0, 75%, 95%);
  color: hsl(0, 75%, 25%);
  border: 1px solid hsl(0, 75%, 85%);
}

/*=============== MEDIA QUERIES ===============*/
@media screen and (max-width: 900px) {
  .nav {
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
    gap: 0;
  }

  .nav__toggle {
    display: inline-flex !important;
  }

  .nav .nav__list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none !important;
    width: auto;
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
  }

  .nav .nav__list.is-open {
    display: flex !important;
  }

  .login__showcase {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
    gap: 1.5rem;
  }

  .login__slogan {
    padding: 0;
    min-height: 260px;
    text-align: center;
  }

  .login__logo-slot {
    margin-left: auto;
    margin-right: auto;
  }

  .login__slogan h2,
  .login__slogan-text {
    max-width: none;
  }

  .login__form {
    justify-self: center;
  }

  .nav__item {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav__link,
  .nav__button {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    display: inline-flex;
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .login {
    padding: 5.5rem 1rem 1.25rem;
  }

  .login__showcase {
    padding: 1.15rem;
    border-radius: 1rem;
  }

  .login__slogan h2 {
    font-size: clamp(1.65rem, 8vw, 1.95rem);
  }

  .login__logo-slot {
    height: 96px;
    margin-bottom: 1rem;
  }

  .login__company-logo {
    max-height: 88px;
  }

  .login__slogan-text {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .nav__list {
    gap: 0.75rem;
  }

  .nav__brand {
    font-size: 1rem;
  }

  .login__form {
    padding: 2rem;
  }

  .login__title {
    font-size: 1.25rem;
  }
}

  
