/* Brand login page: left = school login card, right = vendor panel (real HTML, links work). */
:root {
  --brand: #0C2D5A; --brand-dark: #061A36; --accent: #FAC775; --accent-ink: #412402;
  --ink: #0B1B33; --muted: #5F6B7A; --line: #E1E8F3; --page: #F4F7FC;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html, body { height: 100%; }
body, input, button, h1, h2, h3, h4, p, a, li, span { font-family: var(--font) !important; }
body { background: var(--page) !important; }
.top-content, .inner-bg, .inner-bg > .container-fluid, .inner-bg .row, .bgoffsetbg { min-height: 100vh; }
.inner-bg { padding: 0 !important; }
.bgoffsetbg { display: flex; flex-wrap: wrap; }
.nopadding, .nopadding-2 { padding: 0 !important; }

/* ---------- left: login card ---------- */
.loginbg {
  background: #fff !important; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 44px !important; box-shadow: none !important;
}
.loginbg .form-top { background: transparent !important; padding: 0 !important; border: 0 !important; }
.loginbg .form-top-left img { max-height: 64px; width: auto; max-width: 100%; }
.loginbg .form-bottom { background: transparent !important; padding: 28px 0 0 !important; box-shadow: none !important; }
.loginbg h3.font-white {
  color: var(--ink) !important; font-size: 26px !important; font-weight: 800 !important; margin: 0 0 6px !important; letter-spacing: -.3px;
}
.loginbg h3.font-white:after { content: "Sign in to continue"; display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.loginbg form { margin-top: 22px; }
.loginbg .form-group { margin-bottom: 16px; }
.loginbg .form-control {
  height: 50px !important; border-radius: 14px !important; border: 1px solid var(--line) !important; background: #FBFCFE !important;
  color: var(--ink) !important; font-size: 15px !important; padding: 0 46px 0 16px !important; box-shadow: none !important; line-height: 50px;
}
.loginbg .form-control:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(12,45,90,.12) !important; background: #fff !important; }
.loginbg .form-control-feedback { color: var(--muted) !important; line-height: 50px !important; height: 50px !important; right: 6px; }
.loginbg button.btn {
  width: 100%; height: 50px; border-radius: 999px !important; background: var(--brand) !important; color: #fff !important;
  font-size: 16px !important; font-weight: 700 !important; border: 0 !important; margin-top: 6px; transition: background .15s, transform .1s;
}
.loginbg button.btn:hover { background: var(--brand-dark) !important; }
.loginbg button.btn:active { transform: scale(.99); }
.loginbg .forgot { display: inline-block; margin-top: 16px; color: var(--brand) !important; font-weight: 600; font-size: 14px; }
.loginbg .alert { border-radius: 12px; font-size: 14px; }

/* ---------- right: vendor panel ---------- */
.dm-panel {
  position: relative; min-height: 100vh; color: #DCE6F5; padding: 40px 48px 32px; display: flex; flex-direction: column; gap: 18px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(80,130,220,.35), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(250,199,117,.12), transparent 60%),
    linear-gradient(160deg, #0A2550 0%, #061A36 70%);
  overflow: hidden;
}
.dm-panel:before { /* faint dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.dm-panel > * { position: relative; }
.dm-panel i[class^="icon-"] { font-family: lucide !important; font-style: normal; line-height: 1; }
.dm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dm-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; }
.dm-logo { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.dm-brand b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; line-height: 1.1; }
.dm-brand small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #9FB8DA; }
.dm-badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.dm-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: #fff; color: #0866FF; }
.dm-badge-wa { background: rgba(37,211,102,.15); color: #7EEBA9; border: 1px solid rgba(37,211,102,.35); }
.dm-title { margin: 10px 0 0 !important; font-size: 34px !important; font-weight: 800 !important; color: #fff !important; letter-spacing: -.6px; line-height: 1.15; }
.dm-sub { margin: 0 !important; font-size: 16px; color: #B8C9E2; }
.dm-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 6px; }
.dm-card { grid-column: span 2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  padding: 16px 18px; transition: transform .2s, background .2s, border-color .2s; }
.dm-card:nth-child(4), .dm-card:nth-child(5) { grid-column: span 3; }
.dm-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); border-color: rgba(250,199,117,.45); }
.dm-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 10px; }
.dm-ico.c1 { background: rgba(133,183,235,.18); color: #A9CCF4; }
.dm-ico.c2 { background: rgba(237,147,177,.18); color: #F4B5CA; }
.dm-ico.c3 { background: rgba(250,199,117,.18); color: #FAC775; }
.dm-ico.c4 { background: rgba(93,202,165,.18); color: #8FE0C3; }
.dm-ico.c5 { background: rgba(37,211,102,.18); color: #7EEBA9; }
.dm-card h4 { margin: 0 0 8px !important; font-size: 15.5px !important; font-weight: 700 !important; color: #fff !important; }
.dm-card ul { margin: 0; padding: 0; list-style: none; }
.dm-card li { font-size: 13.5px; color: #C3D2E8; padding: 3px 0 3px 16px; position: relative; }
.dm-card li:before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dm-tagline { margin: 4px 0 0 !important; font-size: 15px; color: #DCE6F5; text-align: center; font-weight: 500; }
.dm-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dm-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 17px;
  font-weight: 800; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.dm-btn i { font-size: 20px; }
.dm-btn:hover { transform: translateY(-2px); }
.dm-call { background: var(--accent); color: var(--accent-ink) !important; box-shadow: 0 10px 24px rgba(250,199,117,.25); }
.dm-wa { background: #25D366; color: #06371A !important; box-shadow: 0 10px 24px rgba(37,211,102,.22); }
.dm-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.dm-links a { display: inline-flex; align-items: center; gap: 8px; color: #C3D2E8 !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.dm-links a:hover { color: #fff !important; }
.dm-links i { font-size: 16px; color: var(--accent); }

/* school notices (only when the school has published some) */
.dm-notices { margin-top: auto; }
.dm-notices .h3 { color: #fff !important; font-size: 16px !important; font-weight: 700 !important; margin: 0 0 8px !important; }
.dm-notices .loginright { background: rgba(255,255,255,.06) !important; border-radius: 14px; padding: 12px 16px; max-height: 180px; }
.dm-notices h4 { color: #fff !important; font-size: 14px !important; }
.dm-notices p, .dm-notices a.more { color: #C3D2E8 !important; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .dm-panel { padding: 32px 30px 26px; }
  .dm-title { font-size: 28px !important; }
  .dm-grid { grid-template-columns: repeat(2, 1fr); }
  .dm-card, .dm-card:nth-child(4), .dm-card:nth-child(5) { grid-column: span 1; }
  .dm-card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 991px) {
  .loginbg { padding: 32px 26px !important; }
}
@media (max-width: 767px) {
  .loginbg { min-height: auto; padding: 34px 22px 30px !important; }
  .dm-panel { min-height: auto; padding: 28px 18px 26px; gap: 14px; }
  .dm-top { flex-direction: column; }
  .dm-badges { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .dm-title { font-size: 24px !important; }
  .dm-sub { font-size: 14px; }
  .dm-grid { grid-template-columns: 1fr; gap: 10px; }
  .dm-card, .dm-card:nth-child(4), .dm-card:nth-child(5) { grid-column: span 1; }
  .dm-btn { height: 48px; font-size: 15px; padding: 0 18px; flex: 1 1 100%; justify-content: center; }
}
/* stock template centres text: keep the panel left-aligned (tagline + buttons stay centred) */
.dm-panel, .dm-card, .dm-title, .dm-sub { text-align: left !important; }
.loginbg, .loginbg .form-bottom, .loginbg .form-top { text-align: left !important; }
/* keep Font Awesome glyphs (the font rule above targets span) */
.fa { font-family: FontAwesome !important; }
/* phones: login card edge to edge */
@media (max-width: 767px) {
  .inner-bg > .container-fluid { padding: 0 !important; }
  .inner-bg .row { margin: 0 !important; }
  .loginbg { width: 100%; }
}
@media (max-width: 767px) {
  .bgoffsetbg > .nopadding, .bgoffsetbg > .nopadding-2 { width: 100% !important; float: none !important; }
  .loginbg { margin: 0 !important; max-width: none !important; border-radius: 0 !important; }
}

/* ================= v2: calmer, professional look ================= */
.dm-panel { background: linear-gradient(165deg, #0B2A55 0%, #071B39 60%, #05142B 100%) !important; }
.dm-panel:before { display: none; }                       /* dot grid replaced by the animated network */
.dm-net { position: absolute !important; inset: 0; pointer-events: none; }
.dm-panel > *:not(.dm-net) { z-index: 1; }

.dm-logo { border-radius: 12px; background: transparent; border: 1px solid rgba(255,255,255,.22); width: 46px; height: 46px; font-size: 24px; }
.dm-brand b { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.dm-brand small { font-size: 11.5px; letter-spacing: 3.5px; font-weight: 600; }

.dm-badge, .dm-badge-wa { background: transparent !important; color: #C9D6EA !important; border: 1px solid rgba(255,255,255,.18) !important;
  font-weight: 500; font-size: 12px; padding: 6px 12px; border-radius: 8px; }
.dm-badge i { color: #8FB3E3; }

.dm-title { font-size: 32px !important; font-weight: 700 !important; letter-spacing: -.4px; }
.dm-sub { color: #9FB2CF; font-size: 15px; }

.dm-grid { gap: 12px; }
.dm-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 16px 18px;
  transition: border-color .2s, background .2s; transform: none !important; backdrop-filter: blur(2px); }
.dm-card:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.18); }
.dm-ico, .dm-ico.c1, .dm-ico.c2, .dm-ico.c3, .dm-ico.c4, .dm-ico.c5 {
  width: 34px; height: 34px; border-radius: 8px; background: transparent !important; color: #8FB3E3 !important;
  border: 1px solid rgba(143,179,227,.35); font-size: 17px; margin-bottom: 12px;
}
.dm-card h4 { font-size: 15px !important; font-weight: 600 !important; letter-spacing: .1px; }
.dm-card li { color: #A9BAD3; font-size: 13.5px; padding-left: 14px; }
.dm-card li:before { width: 6px; height: 1px; top: 12px; border-radius: 0; background: #6F8DB8; }

.dm-tagline { color: #9FB2CF; font-size: 14.5px; }
.dm-btn { height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; padding: 0 22px; box-shadow: none !important; transform: none !important; gap: 9px; }
.dm-btn i { font-size: 17px; }
.dm-call { background: #fff !important; color: var(--brand) !important; }
.dm-call:hover { background: #E8EEF8 !important; }
.dm-wa { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3); }
.dm-wa:hover { border-color: #fff; background: rgba(255,255,255,.06) !important; }
.dm-links a { color: #9FB2CF !important; font-size: 13.5px; }
.dm-links i { color: #8FB3E3; }

/* login card: quieter details */
.loginbg button.btn { border-radius: 10px !important; font-weight: 600 !important; font-size: 15px !important; height: 48px; }
.loginbg .form-control { border-radius: 10px !important; height: 48px !important; line-height: 48px; }
.loginbg .form-control-feedback { line-height: 48px !important; height: 48px !important; }
.loginbg h3.font-white { font-weight: 700 !important; font-size: 24px !important; }

/* ================= v3: real partner badges, coloured icons, green WhatsApp, email button ================= */
.dm-badges { flex-direction: row; align-items: center; gap: 10px; }
.dm-badge-img { height: 54px; width: auto; border-radius: 8px; display: block; }
.dm-badge-img.dm-meta { background: #fff; }

.dm-ico.c1 { background: rgba(133,183,235,.16) !important; color: #A9CCF4 !important; border-color: rgba(133,183,235,.35); }
.dm-ico.c2 { background: rgba(237,147,177,.16) !important; color: #F4B5CA !important; border-color: rgba(237,147,177,.35); }
.dm-ico.c3 { background: rgba(250,199,117,.16) !important; color: #FAC775 !important; border-color: rgba(250,199,117,.35); }
.dm-ico.c4 { background: rgba(93,202,165,.16) !important; color: #8FE0C3 !important; border-color: rgba(93,202,165,.35); }
.dm-ico.c5 { background: rgba(37,211,102,.16) !important; color: #7EEBA9 !important; border-color: rgba(37,211,102,.35); }

.dm-wa { background: #25D366 !important; color: #fff !important; border: 0 !important; }
.dm-wa:hover { background: #1EBE5A !important; }
.dm-mail { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3); }
.dm-mail:hover { border-color: #fff; background: rgba(255,255,255,.06) !important; }

@media (max-width: 767px) {
  .dm-badge-img { height: 44px; }
  .dm-btn { flex: 1 1 100%; }
}
