/* =========================================================
   login.css
   Dipakai untuk halaman: login.html
   ========================================================= */


/* =========================================================
   0) ROOT VARIABLES
   ========================================================= */
:root {
  --panelPad: 64px;
  --radius: 18px;
}


/* =========================================================
   1) BASE STRUCTURE
   ========================================================= */
html,
body {
  height: 100%;
}

body {
  font-family: "Viga", sans-serif;
}

.page-login {
  overflow: hidden;
}


/* =========================================================
   2) LOGIN PAGE WRAPPER
   ========================================================= */
.login-page {
  min-height: 100vh;
  background: #fff;
  overflow: hidden;
}


/* =========================================================
   3) LOGIN SHELL (2 PANEL GRID)
   ========================================================= */
.login-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}


/* =========================================================
   4) LEFT PANEL: IMAGE / PATTERN
   ========================================================= */
.login-pattern {
  height: 100%;
  overflow: hidden;
}

.pattern-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   5) RIGHT PANEL: FORM PANEL
   ========================================================= */
.login-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 15px 15px;
}

.login-inner {
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  overflow-y: auto;
  margin-top: 0px;
}


/* =========================================================
   6) LOGO / BRAND
   ========================================================= */
.login-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "Calistoga", serif;
}

.login-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-sub {
  font-size: 1.50rem;
  letter-spacing: .9px;
  color: var(--primary);
  line-height: 1.15;
}

.brand-sub span {
  font-family: "Calistoga", serif;
  letter-spacing: 1px;
  font-size: .72rem;
}


/* =========================================================
   7) TITLE
   ========================================================= */
.login-title {
  font-family: "Calistoga", serif;
  color: var(--primary);
  font-size: 1.50rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 1rem 0 1rem;
}


/* =========================================================
   8) FORM LABELS
   ========================================================= */
.ott-label {
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 8px;
}


/* =========================================================
   9) INPUT WITH ICON (EMAIL / PASSWORD)
   ========================================================= */
.ott-input {
  position: relative;
}

.ott-input .form-control {
  border: 2px solid rgba(139, 30, 30, .35);
  border-radius: 10px;
  font-weight: 800;
}

/* ===== Focus State Function ===== */
.ott-input .form-control:focus {
  border-color: rgba(139, 30, 30, .55);
  box-shadow: 0 0 0 .12rem rgba(139, 30, 30, .12);
}

/* ===== Icon (Email) ===== */
.ott-input .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 18px;
  pointer-events: none;
}

/* ===== Button Function: Toggle Password ===== */
.ott-input .icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--primary);
  border-radius: 10px;
}


/* =========================================================
   10) ERROR TEXT
   ========================================================= */
.err-text {
  display: none;
  color: #b3261e;
  font-weight: 800;
  margin-top: 6px;
}


/* =========================================================
   11) REMEMBER ME
   ========================================================= */
.remember {
  font-weight: 900;
  color: #222;
  user-select: none;
}

.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}


/* =========================================================
   12) ACTION BUTTONS (FORGOT + LOGIN)
   ========================================================= */

/* ===== Button Function: Forgot Password ===== */
.btn-forgot {
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: .6px;
}

/* ===== Button Function: Login ===== */
.btn-login {
  min-width: 120px;
}

/* ===== Disabled State Function ===== */
#btnLogin:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}


/* =========================================================
   13) DIVIDER
   ========================================================= */
.login-divider {
  height: 1px;
  background: rgba(139, 30, 30, .18);
  margin: 16px 0 14px;
}


/* =========================================================
   14) SOCIAL / REGISTER BUTTONS
   ========================================================= */
.btn-social,
.btn-register {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .4px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ===== Social Button Icon ===== */
.gmark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
  border: 2px solid rgba(139, 30, 30, .35);
}


/* =========================================================
   16) RESPONSIVE
   ========================================================= */
/* ===== Tablet & bawah (<= 991px) ===== */
@media (max-width: 991px) {
  .login-shell {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .login-panel {
    padding: 40px 15px 15px;
  }

  .login-inner {
    max-width: 520px;
  }

  .modal-dialog {
    max-width: 92vw;
  }

  .ott-modal-text {
    font-size: 1.55rem;
  }
}

/* ===== Mobile (<= 575px) ===== */
@media (max-width: 575px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  /* Hidden Panel Gambar */
  .login-pattern {
    display: none;
  }

  /* Panel Padding */
  .login-panel {
    padding: 28px 16px;
    align-items: flex-start;
  }

  .login-inner {
    max-width: 520px;
    overflow-y: visible;
  }

  .login-title {
    font-size: 1.8rem;
  }

  /* Modal */
  .ott-modal-text {
    font-size: 1.25rem;
  }

  .ott-modal-btn {
    min-width: 180px;
  }

  /* =======================================================
     ACTION ROW (REMEMBER + BUTTONS)
     ======================================================= */
  .login-page .d-flex.align-items-center.justify-content-between.mt-3 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  /* Remember Me */
  .login-page .remember {
    justify-content: flex-start;
  }

  /* Forgot & Login Jadi 1 Baris */
  .login-action-row {
    margin-top: 0 !important;
    display: flex;
    gap: 10px;
    width: 100%;
  }

  /* 2 Tombol Jadi 1 Baris */
  .login-action-row .btn-forgot,
  .login-action-row .btn-login {
    flex: 1;
    width: 100%;
    white-space: nowrap;
  }

  .login-action-row .btn {
    padding-left: 10px;
    padding-right: 10px;
  }
}