:root {
  --primary: #16A34A;
  --primary-dark: #15803D;
  --primary-soft: #DCFCE7;
  --bg: #F8FAF5;
  --white: #FFFFFF;
  --ink: #14261B;
  --muted: #5B6B60;
  --line: #E4EDE4;
  --red: #EF4444;
  --red-soft: #FEE2E2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.login-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* ===== Cột thương hiệu ===== */
.login-brand {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 48px 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-brand::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.brand-top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.brand-mid { position: relative; z-index: 1; }
.brand-mid h2 { font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.brand-mid > p { font-size: 16px; opacity: 0.92; max-width: 400px; margin-bottom: 28px; }
.brand-list { list-style: none; display: grid; gap: 12px; }
.brand-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; opacity: 0.95; }
.brand-list i { font-size: 20px; }
.brand-foot { position: relative; z-index: 1; font-size: 13px; opacity: 0.8; }

.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.18); color: #fff;
  display: grid; place-items: center; font-size: 21px;
}
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; opacity: 0.85; }

/* ===== Cột form ===== */
.login-panel { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 400px; }

.login-head { margin-bottom: 26px; }
.login-head .mobile-only { display: none; margin-bottom: 18px; background: var(--primary); }
.login-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.login-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }

.input {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 0 14px; transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input > i { color: var(--muted); font-size: 19px; }
.input input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 15px; color: var(--ink); padding: 13px 0;
}
.input input::placeholder { color: #9AA89E; }
.toggle-pw { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 19px; display: grid; place-items: center; }
.toggle-pw:hover { color: var(--primary); }

.remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.btn-submit {
  width: 100%; border: none; cursor: pointer;
  background: var(--primary); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 15.5px;
  padding: 14px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32); transition: background .15s, transform .1s;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-submit i { font-size: 19px; }

.alert {
  display: flex; align-items: center; gap: 8px;
  background: var(--red-soft); color: #B91C1C;
  border-radius: 10px; padding: 11px 14px; font-size: 14px; font-weight: 500;
  margin-bottom: 18px;
}
.alert i { font-size: 18px; }

.spin { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-head .mobile-only { display: grid; }
}
