:root {
  --font-main: 'Manrope', Inter, Arial, sans-serif;
  --primary: #0a454b;
  --accent: #cc983e;
  --bg: #f7faf9;
  --card: #ffffff;
  --text: #102a2a;
  --muted: #6b7c7a;
  --border: #dde7e5;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(10, 69, 75, 0.10);
}
body.dark {
  --bg: #071d20;
  --card: #0f2c30;
  --text: #f4fbfa;
  --muted: #9eb7b5;
  --border: #1e4b50;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-main); background: var(--bg); color: var(--text); }
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--card); border-right: 1px solid var(--border); padding: 16px; }
.brand { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.item { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); padding: 10px; border-radius: 12px; margin: 6px 0; }
.item.active, .item:hover { background: rgba(10,69,75,0.08); }
.main { padding: 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.user-pill { color: var(--muted); font-size: .9rem; }
.tiles { margin-top: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.tile i { color: var(--primary); font-size: 1.2rem; }
.tile h3 { margin: 10px 0 6px; font-size: 1rem; }
.tile p { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.auth-body { display: grid; place-items: center; min-height: 100vh; }
.auth-card { width: min(420px, 92vw); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.auth-card form { display: grid; gap: 10px; }
.auth-card input { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.auth-card button { padding: 10px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }
.alert { margin: 10px 0; color: #b3261e; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; top: 0; bottom: 0; width: 260px; z-index: 20; transition: left .25s ease; }
  body.sidebar-open .sidebar { left: 0; }
}



/* Login page redesign */
.login-body {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}
.login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/img/login-back2.jpg') center center / cover no-repeat;
  transform: scale(1.03);
  filter: blur(4px);
  z-index: -2;
}
.login-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 20, 0.28);
  z-index: -1;
}
.login-shell {
  width: min(1120px, 100%);
  min-height: min(740px, calc(100vh - 40px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.14);
}
.login-left {
  background: rgba(243, 246, 248, 0.94);
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
}
.login-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.login-logo {
  height: 62px;
  width: auto;
}
.login-brand-text { display: none; }
.login-title {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 38px);
  color: #0f1220;
  letter-spacing: -0.02em;
}
.login-subtitle {
  margin: 8px 0 20px;
  color: #6e7a87;
  font-size: 16px;
}
.login-form {
  display: grid;
  gap: 11px;
  max-width: 520px;
}
.login-form label {
  color: #60707c;
  font-size: 15px;
  font-weight: 600;
}
.login-form input[type='email'],
.login-form input[type='password'],
.password-wrap input {
  width: 100%;
  border: 1px solid #d6dee5;
  border-radius: 10px;
  background: #fff;
  padding: 12px 12px;
  font-size: 15px;
  color: #152232;
}
.password-wrap { position: relative; }
.password-wrap .eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #5f6f7d;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
}
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.remember-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6a7784;
  font-size: 14px;
}
.muted-link {
  color: #2f6358;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.login-submit {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #124d3a, #1b5d43);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 13px;
  margin-top: 6px;
  cursor: pointer;
}
.login-submit:hover { filter: brightness(1.05); }
.login-right {
  position: relative;
  background: radial-gradient(circle at 70% 12%, rgba(255,255,255,0.22), rgba(255,255,255,0) 44%), linear-gradient(150deg, #114f3b 0%, #154f39 55%, #0f4735 100%);
  color: #eaf3ef;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.support-pill {
  align-self: flex-end;
  font-size: 16px;
  font-weight: 700;
  opacity: .95;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.promo-card {
  max-width: 470px;
  background: #f5f7f8;
  border-radius: 14px;
  color: #113f34;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(8, 35, 26, 0.18);
}
.promo-card h2 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.promo-card p {
  margin: 0;
  color: #48635b;
  font-size: 18px;
  line-height: 1.4;
}
.promo-btn {
  margin-top: 16px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #14513c;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.promo-copy { max-width: 560px; }
.promo-copy h3 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.promo-copy p {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: rgba(235, 246, 241, 0.88);
}
.login-body .alert {
  margin: 0 0 12px;
  background: #ffe8e7;
  border: 1px solid #efb5b1;
  color: #9d1e16;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
@media (max-width: 1280px) {
  .login-shell { grid-template-columns: 1fr; min-height: auto; width: min(860px, 100%); }
  .login-right { min-height: 340px; }
  .promo-card h2 { font-size: 30px; }
  .promo-copy h3 { font-size: 34px; }
  .promo-copy p { font-size: 18px; }
}
@media (max-width: 740px) {
  .login-body { padding: 8px; }
  .login-left, .login-right { padding: 18px; }
  .login-title { font-size: 32px; }
  .login-subtitle { font-size: 14px; margin-bottom: 14px; }
  .login-form label, .login-form input, .remember-wrap, .muted-link { font-size: 14px; }
  .login-submit { font-size: 20px; }
  .support-pill { font-size: 14px; }
}
