@media (max-width: 768px) {
  /* Reset Margin & Box Sizing */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Body: Memenuhi tinggi & lebar layar HP tanpa scroll */
  body {
    width: 100vw;
    height: 100dvh; /* Dynamic Viewport Height agar pas di browser HP */
    overflow: hidden; /* Mencegah layar tergeser/scroll */
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
  }

  /* Bingkai Luar: Menyusun elemen secara vertikal dari atas ke bawah */
  .bingkai-luar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Memastikan elemen atas di paling atas, elemen bawah di paling bawah */
    position: relative;
    background: url("assets/images/background-polresta.jpeg") no-repeat center center/cover;
  }

  /* 1. Bingkai Logo: Sticky / Menempel di paling atas */
  .bingkai-logo {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    z-index: 10;
  }

  .bingkai-logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
  }

  /* 2. Bingkai Dalam: Lebar 100%, Tinggi 70%, Menempel di paling bawah .bingkai-luar */
  .bingkai-dalam {
    width: 100%;
    max-width: 100%;
    height: 70%;
    margin-top: auto; /* Mendorong container ini otomatis menempel di dasar .bingkai-luar */
    display: flex;
    justify-content: center; /* Horisontal ke tengah */
    align-items: center;    /* Vertikal ke tengah */
    padding: 0;          /* Padding di 4 sisi agar login-box tidak nempel garis luar */
    background: rgb(245, 222, 178, 1);
    border-radius: 25px 25px 0 0;
    background: #ffffff;
  }

  /* Login Box */
  .login-box {
    width: 100%;
    max-width: 292px;
    background: #ffffff;
    padding: 24px 20px;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); */
    
    /* Mengalir dari atas ke bawah (kolom) */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 2px; */
    border-radius: 25px 25px 0 0;
    
    /* background: white;
    background: rgb(245, 222, 178, 0.9); */
  }

  /* Logo Primkoppol */
  .login-box > img {
    width: 65%;
    height: auto;
    margin-bottom: 4px;
  }

  /* Judul */
  .login-box h2 {
    font-size: 1.25rem;
    color: #222;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  /* Input Group Container */
  .input-group {
    width: 100%;
    position: relative;
  }

  /* Styling Input */
  .input-group input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .input-group input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
  }

  /* Toggle Password */
  .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
  }

  /* Error Text */
  #errorlogin {
    color: #d9534f;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    /* min-height: 18px; */
  }

  /* Button Login */
  #btnLogin {
    width: 100%;
    padding: 12px;
    background-color: #017cff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  #btnLogin:hover {
    background-color: #004085;
  }

}

/* 6. Adjustment Khusus Layar Tablet (Breakpoint Opsional) */
@media (min-width: 600px) and (max-width: 1024px) {
  .login-box {
    max-width: 420px;
    padding: 32px 28px;
  }

  .bingkai-logo img {
    max-height: 55px;
  }
}