@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
  --auth-primary: #111111;
  --auth-gradient-start: #f7f8fa;
  --auth-gradient-end: #eceff3;
  --auth-panel-bg: #ffffff;
  --auth-panel-text: #0f172a;
  --auth-muted: #6b7280;
  --auth-border: #e2e8f0;
  --auth-focus: #111111;
}

.auth-body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(17, 24, 39, 0.08), transparent 55%),
    linear-gradient(180deg, var(--auth-gradient-start), var(--auth-gradient-end));
  color: var(--auth-panel-text);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

.auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-shell {
  flex: 1 1 auto;
  display: flex;
  min-height: 100vh;
}

.auth-panel {
  flex: 0 0 38%;
  max-width: 520px;
  background: var(--auth-panel-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-panel__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-panel__brand--center {
  flex-direction: column;
  text-align: center;
  gap: 0.9rem;
}

.auth-panel__logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.auth-panel__logo--xl {
  width: 172px;
  height: 172px;
}

.auth-panel__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.auth-panel__system {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-panel__description {
  color: var(--auth-muted);
  font-size: 0.98rem;
  margin-top: 0.2rem;
  text-align: center;
  max-width: 320px;
}

.auth-panel__body {
  margin-top: 1rem;
}

.auth-panel__footer {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--auth-muted);
  text-align: center;
}

.auth-panel__footer--tight {
  margin-top: 0.9rem;
}

.auth-form label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-muted);
  margin-bottom: 0.35rem;
}

.auth-form .form-control {
  border-radius: 0.75rem;
  border: 1px solid var(--auth-border);
  padding: 0.6rem 0.9rem;
  background: #f8fafc;
  color: var(--auth-panel-text);
}

.auth-form .form-control:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0);
  outline: 2px solid var(--auth-focus);
  outline-offset: 2px;
}

.auth-input-group {
  position: relative;
}

.auth-input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.auth-password-toggle {
  border: 1px solid var(--auth-border);
  border-left: 0;
  background: #f8fafc;
  color: var(--auth-muted);
  font-weight: 600;
  padding: 0 0.9rem;
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.auth-input-group .form-control:focus + .auth-password-toggle {
  border-color: var(--auth-primary);
  outline: 2px solid var(--auth-focus);
  outline-offset: 2px;
}

.auth-submit {
  border-radius: 0.85rem;
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.auth-submit.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.auth-helper {
  color: var(--auth-muted);
  font-size: 0.84rem;
}

.auth-slider {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.login-slider {
  height: 100%;
  width: 100%;
}

.login-slider .carousel-inner,
.login-slider .carousel-item {
  height: 100%;
}

.login-slider .carousel-indicators {
  bottom: 0.75rem;
  margin-bottom: 0;
  gap: 0.45rem;
}

.login-slider .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 0;
  opacity: 1;
}

.login-slider .carousel-indicators .active {
  width: 18px;
  background-color: #ffffff;
}

.auth-slide {
  position: relative;
  width: 100%;
  height: 100%;
  --overlay-opacity: 0.62;
}

.auth-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.auth-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 10, 20, 0.75), rgba(6, 10, 20, 0.25));
  opacity: var(--overlay-opacity);
}

.auth-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 4rem 3.5rem;
  color: #ffffff;
  max-width: 560px;
}

.auth-slide__content.is-center {
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.auth-slide__content.is-right {
  margin-left: auto;
  text-align: right;
  align-items: flex-end;
}

.auth-slide__quote {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.auth-slide__author {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.8;
}

@media (max-width: 1080px) {
  .auth-panel {
    flex-basis: 46%;
    padding: 2.25rem 2rem;
  }

  .auth-slide__content {
    padding: 2.25rem 2.75rem;
    max-width: 460px;
  }
}

@media (min-width: 810px) and (max-width: 1080px) {
  .auth-slide__image {
    object-fit: contain;
    background: #0f172a;
  }
}

@media (max-width: 767.98px) {
  .auth-shell {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 1.5rem;
    gap: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
  }

  .auth-panel {
    width: min(92vw, 420px);
    max-width: 92vw;
    min-height: auto;
    padding: 1.4rem 1.25rem 1.6rem;
    margin: 0.9rem auto 1rem;
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
    border-radius: 1.1rem;
    border-right: 0;
    position: relative;
    z-index: 2;
  }

  .auth-panel__brand {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .auth-panel__logo {
    width: 84px;
    height: 84px;
  }

  .auth-panel__logo--xl {
    width: 112px;
    height: 112px;
  }

  .auth-panel__body {
    margin-top: 0.7rem;
  }

  .auth-slider {
    position: relative;
    inset: auto;
    display: block;
    width: min(92vw, 420px);
    max-width: 92vw;
    height: clamp(150px, 24vh, 210px);
    min-height: auto;
    order: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    z-index: 0;
    margin: 0 auto 1.5rem;
  }

  .auth-slide__content {
    padding: 1.1rem 1.25rem 1.5rem;
    max-width: 100%;
  }

  .auth-slide__overlay {
    background: linear-gradient(160deg, rgba(7, 11, 20, 0.78), rgba(7, 11, 20, 0.35));
  }

  .auth-panel__system {
    font-size: 1.2rem;
  }

  .auth-panel__description {
    font-size: 0.82rem;
    max-width: 260px;
  }

  .auth-form label {
    font-size: 0.6rem;
  }

  .auth-form .form-control {
    padding: 0.55rem 0.8rem;
  }

  .auth-password-toggle {
    padding: 0 0.75rem;
    font-size: 0.8rem;
  }

  .auth-submit {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }

  .auth-helper {
    font-size: 0.78rem;
  }

  
}

@media (max-width: 767.98px) {
  .auth-slider {
    height: 810px;        /* sesuai resolusi bg2 */
    max-height: 70vh;     /* tapi tetap aman di HP kecil */
  }
}