/* ===== LOGIN PAGE (responsive mobile + desktop) ===== */
:root {
  --black: #2d2d2d;
  --gray: #666;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Karla', sans-serif;
}

body {
  background-color: #f6f6f6;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* LOGIN CONTAINER */
.login-container {
  background-color: var(--white);
  width: 90%;
  max-width: 360px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* HEADER */
.login-header {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  padding: 30px 10px 25px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.logo-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 10px;
}

.app-title {
  font-size: 20px;
  font-weight: 700;
}

.app-subtitle {
  font-size: 11.5px;
  color: #d9d9d9;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* BODY */
.login-body {
  text-align: center;
  padding: 35px 25px;
}

.login-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-body span {
  color: var(--black);
}

.login-body p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 22px;
}

/* FORM */
form input {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 14px;
  border: 1.8px solid #333;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.2s ease;
}

form input:focus {
  outline: none;
  border-color: #000;
}

/* LUPA PASSWORD */
.forgot-password {
  text-align: left;
  margin-bottom: 20px;
}

.forgot-password a {
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* LOGIN BUTTON */
.login-btn {
  width: 100%;
  padding: 11px 0;
  border: 1.8px solid #000;
  background: transparent;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background-color: #000;
  color: #fff;
}

/* FOOTER */
.login-footer {
  text-align: center;
  font-size: 11px;
  color: #777;
  padding: 10px 15px 20px;
}

.version {
  font-weight: 700;
  margin-bottom: 5px;
}

/* ===== Untuk Lupa Password ===== */
.label-title {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 10px;
}

/* input password supervisor */
.lp-supervisor-input {
  width: 100%;
  padding: 11px 13px;
  margin-top: 18px;
  border: 1.8px solid #333;
  border-radius: 6px;
  font-size: 14px;
  display: none; /* akan muncul setelah popup */
}

/* Popup tunggu sebentar */
.popup-loading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-loading.active {
  display: flex;
}

.popup-box {
  background: #fff;
  padding: 25px 35px;
  border-radius: 15px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.loader {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 4px solid #ddd;
  border-top-color: #FF9470;
  margin: 0 auto 15px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ===== RESPONSIVE ===== */

/* Mobile first (default) sudah cocok untuk 360px width */

/* Tablet */
@media (min-width: 600px) {
  .login-container {
    max-width: 400px;
  }

  .login-header {
    padding: 35px 10px 30px;
  }

  .app-title {
    font-size: 22px;
  }
}

/* ===== DESKTOP RESPONSIVE (FULL WIDTH STYLE) ===== */
@media (min-width: 1024px) {
  body {
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  .login-container {
    width: 100%;
    max-width: 580px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: 0.3s ease;
  }

  .login-header {
    padding: 40px 15px 35px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }

  .logo-img {
    width: 90px;
    height: 90px;
  }

  .app-title {
    font-size: 24px;
  }

  .app-subtitle {
    font-size: 13px;
  }

  .login-body {
    padding: 45px 60px;
  }

  .login-body h2 {
    font-size: 24px;
    font-weight: 700;
  }

  .login-body p {
    font-size: 14px;
  }

  .login-btn {
    font-size: 16px;
    padding: 12px 0;
  }

  .login-footer {
    font-size: 12px;
  }
}

