/* =========================================================
   register.css (atau login-register.css)
   Dipakai untuk halaman: register.html | new-password.html | forgot-password.html
   ========================================================= */


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


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

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

.page-login {
  overflow: hidden;
}

.login-page {
  min-height: 100vh;
  background: #fff;
  overflow: hidden;
}


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


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

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


/* =========================================================
   5) RIGHT PANEL (FORM)
   ========================================================= */
.login-panel {
  height: 100%;
  width: 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: 0;
}


/* =========================================================
   6) BRAND / LOGO
   ========================================================= */
.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.5rem;
  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.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 1rem 0;
}


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

.ott-input {
  position: relative;
}

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

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

/* ===== Icon Function: Right Icon (Email/User/Phone) ===== */
.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;
}

.err-text {
  display: none;
  color: #b3261e;
  font-weight: 800;
  margin-top: 6px;
}


/* =========================================================
   9) CHECKLINE (CONFIRM)
   ========================================================= */
.remember {
  font-weight: 900;
  color: #222;
  user-select: none;
}

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


/* =========================================================
   10) BUTTONS
   ========================================================= */
.btn-login {
  min-width: 120px;
}


/* =========================================================
   11) RESPONSIVE
   ========================================================= */
/* ===== Tablet (<= 991px) ===== */
@media (max-width: 991px) {
  .login-panel {
    padding: 40px 15px 15px;
  }

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

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

  .login-pattern {
    display: none;
  }

  .login-panel {
    padding: 28px 16px;
  }

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

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