/* =========================
   GLOBAL
========================= */
body {
  font-family: Cambria, sans-serif;
  min-height: 100vh;

  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* =========================
   LOGIN CONTAINER
========================= */
.login-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 350px;
  background: #ffffffd2;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
}

/* =========================
   LOGO
========================= */
.logo {
  width: 20%;
  display: block;
  margin: 22px auto 10px;
}

/* =========================
   FORM
========================= */
.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* INPUT */
.login-form input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* =========================
   PASSWORD + EYE
========================= */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  padding-right: 40px; /* space for eye */
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);

  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;

  background: none !important;
  border: none !important;

  cursor: pointer;
  color: #666;
}

.toggle-password:hover {
  color: #000;
}

/* eye state */
.eye-closed {
  display: none;
}

.password-visible .eye-open {
  display: none;
}

.password-visible .eye-closed {
  display: block;
}

/* =========================
   LOGIN BUTTON
========================= */
.login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;

  background: #0066ff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 13px;
}

.login-btn:hover {
  background: #0052cc;
}

/* =========================
   ERROR MESSAGE
========================= */
.error {
  color: red;
  margin-bottom: 10px;
  font-size: 13px;
}


.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    accent-color: #1e88e5; /* sesuaikan warna theme */
    cursor: pointer;
}

.forgot-password-link {
    text-decoration: none;
    color: #1e88e5;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* =========================
   FORGOT PASSWORD
========================= */
.forgot-password {
  margin-top: 12px;
  text-align: center;
}

.forgot-password a {
  font-size: 13px;
  color: #0066ff;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* =========================
   SOCIAL LOGIN
========================= */
.social-login {
  margin-top: 20px;
  width: 100%;
}

.social-title {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}

.social-list {
  margin-bottom: 8px;
  width: 100%;
}

/* BUTTON / LINK */
.social-btn {
  display: flex;              /* 🔑 penting */
  align-items: center;        /* center vertical */
  justify-content: center;    /* center horizontal */

  width: 100%;
  padding: 10px;

  background: #f1f3f5;
  border: 1px solid #1988ff;
  border-radius: 8px;

  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  color: #000;

  box-sizing: border-box;     /* jaga width tetap 100% */

}

.social-btn:hover {
  background: #e9ecef;
}

/* =========================
   VIDEO MODAL
========================= */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal.active {
  display: flex;
}

.video-content {
  position: relative;
  width: 90%;
  max-width: 720px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-content video {
  width: 100%;
  height: auto;
  display: block;
}

.video-close {
  position: absolute;
  top: 8px;
  right: 10px;

  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

/* button trigger */
.tutorial-link {
  margin-top: 10px;
  text-align: center;
}

.tutorial-link button {
  background: none;
  border: none;
  color: #0066ff;
  cursor: pointer;
  font-size: 13px;
}

.tutorial-link button:hover {
  text-decoration: underline;
}

/* =========================
  OTP SETUP PAGE
========================= */
.otp-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.otp-qr-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.otp-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.otp-manual {
  margin-bottom: 16px;
  font-size: 13px;
  color: #555;
}

.otp-secret {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  background: #f1f3f5;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
}

.otp-help {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; /* jarak antar baris */
  color: #666;
  font-size: 13px;
}

.otp-help small {
  line-height: 1.4;
}

#timer {
  font-weight: 600;
  color: #0066ff;
}