/* หน้าเข้าสู่ระบบ (fac/index.php) — โทนสี #0AAF94 */
:root {
  --lg-primary: #0aaf94;
  --lg-primary-dark: #07806d;
  --lg-ink: #1d2e2c;
  --lg-ink-2: #5b6c6a;
  --lg-line: #e3eae9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  color: var(--lg-ink);
  background: #f3f7f6;
  -webkit-font-smoothing: antialiased;
}

.lg-wrap {
  display: flex;
  min-height: 100vh;
}

/* ---- ฝั่งแบรนด์ ---- */
.lg-brand {
  position: relative;
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(10, 175, 148, 0.94), rgba(6, 110, 94, 0.9)),
    url("../../image/cover.jpg") center / cover no-repeat;
  overflow: hidden;
}

.lg-brand::before,
.lg-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.lg-brand::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
}

.lg-brand::after {
  width: 300px;
  height: 300px;
  bottom: -110px;
  left: -90px;
}

.lg-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.lg-logo {
  width: 96px;
  height: auto;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.lg-brand h1 {
  margin: 26px 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.lg-brand p {
  margin: 0 0 28px;
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.lg-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
}

.lg-points i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ---- ฝั่งฟอร์ม ---- */
.lg-form-side {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.lg-card {
  width: 100%;
  max-width: 400px;
}

.lg-logo-sm {
  display: none;
}

.lg-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}

.lg-sub {
  margin: 0 0 28px;
  color: var(--lg-ink-2);
  font-size: 14.5px;
}

.lg-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lg-ink-2);
}

.lg-input {
  position: relative;
  margin-bottom: 18px;
}

.lg-input > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9fb0ae;
  font-size: 14px;
  pointer-events: none;
}

.lg-input input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--lg-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lg-input input:focus {
  outline: 0;
  border-color: var(--lg-primary);
  box-shadow: 0 0 0 4px rgba(10, 175, 148, 0.14);
}

.lg-input input:focus + .lg-eye,
.lg-input:focus-within > i {
  color: var(--lg-primary);
}

.lg-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9fb0ae;
  cursor: pointer;
}

.lg-eye:hover {
  background: #f1f6f5;
  color: var(--lg-primary);
}

.lg-caps {
  display: none;
  margin: -10px 0 14px;
  font-size: 12.5px;
  color: #c27c00;
}

.lg-caps.is-on {
  display: block;
}

.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--lg-ink-2);
  cursor: pointer;
  user-select: none;
}

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

.lg-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0aaf94, #12c0a4);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(10, 175, 148, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.lg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 175, 148, 0.38);
}

.lg-btn:disabled {
  opacity: 0.8;
  cursor: wait;
  transform: none;
}

.lg-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #9aa9a8;
}

/* ---- มือถือ / แท็บเล็ต ---- */
@media (max-width: 991.98px) {
  .lg-wrap {
    flex-direction: column;
  }

  .lg-brand {
    flex: 0 0 auto;
    padding: 36px 24px 76px;
    text-align: center;
  }

  .lg-brand h1 {
    margin-top: 16px;
    font-size: 22px;
  }

  .lg-brand p {
    margin-bottom: 0;
    font-size: 14px;
  }

  .lg-logo {
    width: 76px;
  }

  .lg-points {
    display: none;
  }

  .lg-form-side {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 0 16px 32px;
    margin-top: -48px;
  }

  .lg-card {
    position: relative;
    padding: 28px 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 40, 37, 0.1);
  }

  .lg-card h2 {
    font-size: 24px;
  }
}
