/* Import Font yang mirip (Google Fonts: Roboto/Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-blue: #4361ee;
    --bg-gray: #e6e6e6;
    --text-dark: #333333;
    --text-muted: #666666;
    --radius: 8px;
    --variable-collection-text-light: #ffffff;
    --variable-collection-text-dark: #ffffff;
    --variable-collection-BG-light: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

/* Container Utama untuk centering */
.login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    padding: 0;
    overflow: hidden;
}

/* Kartu Login (Frame) */
.frame {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 100vh;
}

/* BAGIAN KIRI: Gambar Pemandangan */
.div {
    flex: 1;
    background: url('../img/latar.png') center/cover no-repeat;
    position: relative;
    border-radius: 20px;
    margin: 20px;
}

/* BAGIAN KANAN: Form Login */
.frame-2 {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Header Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-pwk {
    width: 40px;
    height: auto;
}

.line {
    height: 30px;
    width: 1px;
    background-color: #ddd;
}

.text-wrapper {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Judul Login */
.text-wrapper-2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: black;
}

.text-wrapper-3 {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Input Fields */
.username,
.passwoord,
.captcha-input {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Captcha Container */
.captcha-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-container .img {
    flex: 1;
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    padding: 0;
    background: #f0f0f0;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
    flex-shrink: 0;
}

.refresh-btn:hover {
    background-color: #324bc4;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

input.frame-3 {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    border: none;
    background-color: var(--bg-gray);
    font-size: 1rem;
    transition: outline 0.2s;
}

input.frame-3:focus {
    outline: 2px solid var(--primary-blue);
    background-color: #fff;
}

/* Captcha Image Styling */
.img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#captcha-canvas {
    display: block;
    cursor: default;
}

/* Tombol Sign In */
.signin-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s;
}

.signin-btn:hover {
    background-color: #324bc4;
}

/* Tombol Dark Mode Toggle (Pojok Kanan Atas) */
.ligh-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
}

.ligh-icon:hover {
    opacity: 1;
}

/* Responsiveness untuk layar HP */
@media (max-width: 768px) {
    .frame {
        flex-direction: column;
        height: auto;
    }

    .div {
        min-height: 200px;
    }

    .frame-2 {
        padding: 30px;
    }
}

/* ============================================ */
/*              MODAL/DIALOG STYLES             */
/* ============================================ */

/* Modal/Dialog styles untuk konfirmasi delete */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #333 !important;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-content p {
    color: #666 !important;
    margin-bottom: 30px;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    min-width: 100px;
}

.btn-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: #5a6268 !important;
}

/* Dark mode untuk modal */
.dark-modelogin .modal-content {
    background-color: #2d3748;
}

.dark-modelogin .modal-content h3 {
    color: #ffffff !important;
}

.dark-modelogin .modal-content p {
    color: #cbd5e0 !important;
}

/* ============================================ */
/*              DARK MODE STYLES                */
/* ============================================ */

.dark-modelogin {
  background: linear-gradient(1deg, rgba(10, 8, 31, 1) 11%, rgba(76, 111, 255, 1) 62%);
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.dark-modelogin .frame {
  width: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  height: 100vh;
}

.dark-modelogin .div {
  flex: 1;
  position: relative;
  border-radius: 20px;
  margin: 20px;
  background-image: url(../img/latar.png);
  background-size: cover;
  background-position: 50% 50%;
}

.dark-modelogin .frame-2 {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.dark-modelogin .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.dark-modelogin .logo-pwk {
  width: 40px;
  height: auto;
}

.dark-modelogin .line {
  height: 30px;
  width: 1px;
  background-color: #ddd;
}

.dark-modelogin .text-wrapper {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.dark-modelogin .text-wrapper-2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.dark-modelogin .text-wrapper-3 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-size: 1rem;
}

.dark-modelogin .username,
.dark-modelogin .passwoord,
.dark-modelogin .captcha-input {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.dark-modelogin .captcha-container {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-modelogin .captcha-container .img {
  flex: 1;
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 0;
  border: 1px solid #ddd;
  padding: 0;
  background: #f0f0f0;
}

.dark-modelogin .refresh-btn {
  width: 40px;
  height: 40px;
  background-color: #4c6fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.3s;
  flex-shrink: 0;
}

.dark-modelogin .refresh-btn:hover {
  background-color: #3a5aef;
}

.dark-modelogin label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.dark-modelogin .frame-3 {
  width: 100%;
  padding: 15px;
  background-color: #eeeeee;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  transition: outline 0.2s;
}

.dark-modelogin .frame-3:focus {
  outline: 2px solid #4c6fff;
  background-color: #fff;
}

.dark-modelogin .signin-btn {
  width: 100%;
  padding: 15px;
  background-color: #4c6fff;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.dark-modelogin .signin-btn:hover {
  background-color: #3a5aef;
}

.dark-modelogin .text-wrapper-6 {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
}

.dark-modelogin .ligh-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}

.dark-modelogin .ligh-icon:hover {
  opacity: 1;
}

.dark-modelogin .vector {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Responsiveness untuk Dark Mode */
@media (max-width: 768px) {
  .dark-modelogin .frame {
    flex-direction: column;
  }

  .dark-modelogin .div {
    min-height: 200px;
  }

  .dark-modelogin .frame-2 {
    padding: 30px;
  }
}
