/* ===== Login page ===== */
.login-body { background: #f6f7fb; color: #0f172a; min-height: 100vh; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }

/* Left: brand & features */
.login-hero { position: relative; overflow: hidden; background: #eaf0fa; border-right: 1px solid #dfe6f2; display: flex; }
.login-hero-inner { position: relative; z-index: 1; padding: 40px 48px 48px; width: 100%; max-width: 980px; }
.login-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; fill: #2563eb; opacity: .06; }

.login-logo-card { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 14px 20px; box-shadow: 0 8px 24px -12px rgba(15, 39, 71, .25); }
.logo-mark { width: 46px; height: 46px; border-radius: 13px; background: #2563eb; color: #fff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.logo-mark.sm { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.logo-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: #0f2747; }
.logo-badge { margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: #fff; background: #2563eb; border-radius: 6px; padding: 2px 8px; }

.login-eyebrow { margin: 22px 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #64748b; }
.login-eyebrow span { margin: 0 8px; color: #94a3b8; }
.login-hero h1 { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #0f2747; margin: 0 0 18px; max-width: 760px; }
.login-hero h1 span { display: block; font-size: 52px; font-weight: 800; color: #2563eb; letter-spacing: -.03em; }
.login-lead { font-size: 18px; color: #475569; max-width: 560px; margin-bottom: 34px; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.feature-card { background: #fff; border: 1px solid #e3e9f4; border-radius: 18px; padding: 20px 18px; box-shadow: 0 6px 18px -14px rgba(15, 39, 71, .35); transition: transform .15s, box-shadow .15s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(15, 39, 71, .45); }
.feature-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.feature-title { font-weight: 600; font-size: 15.5px; color: #0f172a; line-height: 1.3; margin-bottom: 8px; }
.feature-text { font-size: 13.5px; color: #64748b; line-height: 1.45; }
.f-indigo { background: #e9edff; color: #4f46e5; }
.f-violet { background: #f1eafe; color: #7c3aed; }
.f-teal { background: #e0f5f1; color: #0d9488; }
.f-orange { background: #fff0e3; color: #ea580c; }
.f-green { background: #e3f6ea; color: #16a34a; }
.f-wa { background: #e2f8ea; color: #16a34a; }
.f-blue { background: #e4effe; color: #2563eb; }
.f-rose { background: #ffe8ec; color: #e11d48; }

/* Right: sign-in card */
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.login-card { width: 100%; max-width: 500px; background: #fff; border-radius: 28px; padding: 40px 40px 34px; box-shadow: 0 24px 60px -28px rgba(15, 39, 71, .35); border: 1px solid #edf0f6; }
.login-card-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; }
.login-card-logo .logo-name { font-size: 18px; }
.login-card h2 { font-size: 30px; font-weight: 700; color: #0f2747; margin-bottom: 8px; letter-spacing: -.02em; }
.login-sub { color: #64748b; font-size: 15px; line-height: 1.55; margin-bottom: 28px; }
.login-label { font-weight: 500; font-size: 14.5px; color: #0f172a; margin-bottom: 8px; display: inline-block; }
.login-link { color: #2563eb; font-weight: 500; text-decoration: none; }
.login-link:hover { color: #1d4ed8; text-decoration: underline; }
.login-input { position: relative; display: flex; align-items: center; }
.login-input > i { position: absolute; left: 18px; color: #94a3b8; font-size: 17px; pointer-events: none; }
.login-input input { width: 100%; height: 56px; border-radius: 14px; border: 1.5px solid #dbe3f0; background: #f3f6fc; padding: 0 52px 0 50px; font-size: 15.5px; color: #0f172a; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.login-input input::placeholder { color: #94a3b8; }
.login-input input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.login-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #eef3fd inset; }
.pw-eye { position: absolute; right: 10px; width: 38px; height: 38px; border: 0; background: transparent; color: #94a3b8; border-radius: 10px; font-size: 17px; }
.pw-eye:hover { color: #2563eb; background: #eef3fd; }
.login-body .form-check-input { width: 1.2em; height: 1.2em; margin-top: .15em; border-color: #cbd5e1; }
.login-body .form-check-label { font-weight: 500; font-size: 14.5px; padding-left: 4px; }
.login-btn { width: 100%; height: 58px; border: 0; border-radius: 14px; background: #2563eb; color: #fff; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .8); transition: background .15s, transform .15s; }
.login-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.login-btn:disabled { opacity: .7; }
.login-foot { text-align: center; color: #64748b; margin: 24px 0 0; font-size: 14.5px; }
.login-foot span { color: #2563eb; font-weight: 600; }
.login-alert:not(:empty) { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; }
.login-alert ul { margin: 0; padding-left: 16px; }
.login-alert.validation-summary-valid { display: none; }
.login-hint { margin-top: 10px; background: #f3f6fc; border: 1px solid #dbe3f0; color: #475569; border-radius: 12px; padding: 10px 14px; font-size: 13px; }

@media (min-width: 992px) {
  /* Keep the sign-in card in view while the feature list scrolls. */
  .login-panel { position: sticky; top: 0; height: 100vh; }
}
@media (max-width: 1599.98px) {
  .login-hero-inner { padding: 32px 36px 40px; }
  .login-hero h1 { font-size: 34px; }
  .login-hero h1 span { font-size: 44px; }
  .login-lead { font-size: 16.5px; margin-bottom: 26px; }
  .feature-grid { gap: 12px; }
  .feature-card { padding: 16px 14px; border-radius: 16px; }
  .feature-icon { width: 42px; height: 42px; font-size: 19px; margin-bottom: 12px; border-radius: 11px; }
  .feature-title { font-size: 14px; margin-bottom: 4px; }
  .feature-text { font-size: 12.5px; }
  .login-card { padding: 32px 32px 28px; }
  .login-card-logo { margin-bottom: 18px; }
  .login-card h2 { font-size: 27px; }
  .login-sub { margin-bottom: 22px; font-size: 14.5px; }
  .login-input input { height: 52px; }
  .login-btn { height: 54px; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-hero h1 span { font-size: 38px; }
}
@media (min-width: 992px) and (max-height: 820px) {
  .login-eyebrow { margin: 16px 0 12px; }
  .login-hero h1 { margin-bottom: 12px; }
  .login-lead { margin-bottom: 20px; }
  .login-card-logo { display: none; }
  .login-card .mb-3 { margin-bottom: .75rem !important; }
  .login-card .mb-4 { margin-bottom: 1rem !important; }
}
@media (max-width: 991.98px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { border-right: 0; border-bottom: 1px solid #dfe6f2; }
  .login-hero-inner { padding: 24px 20px 70px; }
  .login-hero h1 { font-size: 26px; margin-bottom: 10px; }
  .login-hero h1 span { font-size: 31px; }
  .login-lead { font-size: 15px; margin-bottom: 0; }
  .login-eyebrow { margin: 18px 0 12px; font-size: 11px; letter-spacing: .18em; }
  .feature-grid { display: none; }
  .login-logo-card { padding: 10px 14px; }
  .login-panel { padding: 0 16px 32px; margin-top: -48px; position: relative; z-index: 2; align-items: flex-start; }
  .login-card { padding: 28px 22px 24px; border-radius: 24px; }
  .login-card-logo { display: none; }
  .login-card h2 { font-size: 25px; }
}
