/* =========================
   Login Page Layout
========================= */
.login-page {
  padding: 20px 0;
  background: #f6f7fb;
  min-height: calc(100vh - 140px);
}

.login-container {
  max-width: 500px;
  margin: 24px auto;
  display: flex;
  gap: 30px;
  align-items: stretch;
  padding: 0 16px;
}

.login-panel {
  flex: 1.1;
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.login-panel h2 {
  text-align: center;
}

/* =========================
   Form
========================= */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

/* =========================
   Input (email)
========================= */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Send code button in input */
.input-wrap .btn.small {
  margin-left: 8px;
  padding: 7px 12px;
  font-size: 14px;
  height: 45px;
  min-width: 90px;
  box-shadow: none;
  border: 1px solid #FF6B35;
  background: #FF6B35;
  color: #000000;
  font-family: 'Noto Serif Lao', serif;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.input-wrap .btn.small:disabled {
  background: #f6f7fb;
  color: #aaa;
  border-color: #eee;
  cursor: not-allowed;
}
.input-wrap .btn.small:hover:not(:disabled) {
  background: #FF6B35;
  color: #fff;
}

.input-wrap > i {
  position: absolute;
  left: 12px;
  color: #666;
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  font-family: 'Noto Serif Lao', serif;
  font-weight: 600;
}

/* =========================
   Password Input
========================= */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* icon lock (ซ้าย) */
.password-wrap > i.bx-lock {
  position: absolute;
  left: 12px;
  color: #666;
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.password-wrap input {
  width: 100%;
  padding: 10px 44px 10px 40px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  font-family: 'Noto Serif Lao', serif;
  font-weight: 600;
}

/* =========================
   Toggle Password Button
========================= */
.toggle-pw {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.toggle-pw i {
  font-size: 20px;
  color: #373634;
  pointer-events: auto;
  transition: color 0.2s;
}

/* =========================
   Logo
========================= */
.login-logo {
  display: block;
  margin: 0 auto 12px auto;
  max-width: 160px;
  height: auto;
  border-radius: 50%;
  border: 12px solid #FF6B35;
}

/* =========================
   Remember / Forgot
========================= */
.row.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.remember input[type="checkbox"] {
  margin-right: 8px;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn.primary {
  width: 100%;
  background: #FF6B35;
  color: #fff;
  font-family: 'Noto Serif Lao', serif;
  font-weight: 600;
  font-size: medium;
}

/* =========================
   Links & Text
========================= */
.login-panel a,
.login-panel .forgot,
.login-panel .signup a {
  text-decoration: none;
}

.login-panel a:hover,
.login-panel .forgot:hover,
.login-panel .signup a:hover {
  opacity: 0.9;
}

.signup {
  margin-top: 16px;
  text-align: center;
  color: #666;
}

/* =========================
   Divider (optional)
========================= */
.divider {
  text-align: center;
  margin: 16px 0;
  color: #888;
}

.divider span {
  background: #fff;
  padding: 0 10px;
}

.divider:before {
  content: '';
  display: block;
  height: 1px;
  background: #e6e9ef;
  margin-top: 12px;
}

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column-reverse;
    gap: 12px;
    padding: 12px;
  }

  .login-panel {
    padding: 18px;
    border-radius: 10px;
  }

  .login-logo {
    max-width: 130px;
    border-width: 8px;
  }
}