/* =========================================================================
   AMARAKOSHA — INNER PAGES  (ak-pages.css)
   Shared archetype for the overview + product/service detail pages:
   a banner hero, alternating image/text content rows, sub-headings.
   Loaded per inner page via {% block extra_css %} (after the global ak-base).
   Light + dark (token-driven) + mobile.
   ========================================================================= */

/* ---- Banner hero: keep the photo, integrate it with the theme ---------- */
#headerslider, #slider { position: relative; }
.hero-banner { position: relative; overflow: hidden; }
.hero-banner::before {            /* brand-blue tint + readability wash */
   content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
   background:
      linear-gradient(90deg, rgba(11,24,48,.55), rgba(11,24,48,.12) 55%, transparent),
      radial-gradient(120% 130% at 82% -25%, rgba(31,111,224,.34), transparent 62%);
}
.hero-banner::after {             /* fade the bottom edge into the page canvas */
   content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46%; z-index: 1;
   background: linear-gradient(180deg, transparent, var(--ak-bg));
   pointer-events: none;
}
/* thin signal line along the bottom of the banner */
#slider::after {
   content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
   background: linear-gradient(90deg, transparent, rgba(31,111,224,.6) 35%, rgba(20,153,216,.6) 65%, transparent);
}

/* ---- Content section + cards ------------------------------------------ */
#services .section-title { margin-bottom: 30px; }

#services .row {
   background: var(--ak-panel) !important;     /* beats inline #F8F8F8 */
   border: 1px solid var(--ak-line);
   border-radius: 16px;
   padding: 30px 32px;
   margin: 0 0 26px;
   box-shadow: 0 26px 54px -32px rgba(20,40,90,.45);
   transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
#services .row:hover {
   transform: translateY(-4px);
   border-color: var(--ak-line-2);
   box-shadow: 0 34px 64px -30px rgba(31,111,224,.4);
}

#services .row .h3,
#services p.h3 {
   color: var(--ak-ink); font-family: var(--ak-display);
   font-weight: 700; font-size: 24px; margin: 2px 0 14px;
   position: relative; padding-left: 16px;
}
#services p.h3::before {
   content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px;
   border-radius: 3px; background: linear-gradient(180deg, var(--ak-cyan), var(--ak-blue));
}
#services .row p { color: var(--ak-muted); line-height: 1.8; }

/* product/service thumbnail inside the card */
#services .wrapper img {
   border-radius: 12px;
   border: 1px solid var(--ak-line);
   box-shadow: 0 20px 44px -26px rgba(20,40,90,.5);
   max-width: 320px; height: auto;
}

/* ---- Dark mode (most surfaces already adapt via tokens) ---------------- */
html[data-theme="dark"] #services .wrapper img { border-color: var(--ak-line); filter: brightness(.92); }

/* ---- Mobile ------------------------------------------------------------ */
@media (max-width: 767px) {
   #services .wrapper img {
      float: none !important; margin: 0 0 16px 0 !important;
      max-width: 100%; width: 100%; display: block;
   }
   #services .row { padding: 22px 20px; }
   #services p.h3 { font-size: 20px; }
}

/* =========================================================================
   SERVICES PAGE — graphic banner + content diagrams (replace stock photos).
   Dark "instrument-panel" graphics; SVG shapes use fixed light-on-dark colours.
   ========================================================================= */
/* --- LIGHT mode = bright-blue + white-grid band (home "fun-facts" look) --- */
.svc-hero {
   position: relative; overflow: hidden; padding: 28px 0 30px; margin-bottom: 30px;
   background:
      radial-gradient(700px 400px at 80% 10%, rgba(20,153,216,.35), transparent 60%),
      linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
      linear-gradient(160deg, #2f7be6, #1559b8);
   background-size: 100% 100%, 46px 46px, 46px 46px, 100% 100%;
   border-bottom: 1px solid var(--ak-line);
}
.svc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
   background: linear-gradient(90deg, transparent, rgba(255,255,255,.5) 35%, rgba(207,238,255,.7) 65%, transparent); }
.svc-hero-inner { display: flex; align-items: center; gap: 30px; }
.svc-hero-gfx { flex: 1 1 60%; min-width: 0; }
.svc-hero-gfx svg { width: 100%; height: auto; max-height: 118px; overflow: visible; }
.svc-hero-text { flex: 0 0 auto; text-align: right; }
.svc-eyebrow { font-family: var(--ak-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #d6e8ff; display: block; margin-bottom: 6px; }
.svc-hero-text h1 { color: #fff; font-family: var(--ak-display); font-size: 40px; font-weight: 700; margin: 0; letter-spacing: .01em; }
.svc-hero-text .svc-sub { color: rgba(255,255,255,.88); font-size: 14.5px; line-height: 1.55;
   margin: 10px 0 0; margin-left: auto; max-width: 460px; }

.gfx { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.24);
   background:
      radial-gradient(700px 400px at 82% 0%, rgba(20,153,216,.30), transparent 62%),
      linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
      linear-gradient(160deg, #2f7be6, #1559b8);
   background-size: 100% 100%, 40px 40px, 40px 40px, 100% 100%;
   box-shadow: 0 24px 48px -26px rgba(31,111,224,.7); padding: 13px 15px; }
.gfx::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
   background: linear-gradient(90deg, #cfeeff, #fff 45%, transparent); }
.gfx-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.gfx-title { font-family: var(--ak-display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.gfx-led { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #b6ffd9; box-shadow: 0 0 7px #6ff5b3; animation: ak-blink 1.8s ease-in-out infinite; }
.gfx svg { display: block; width: 100%; height: auto; overflow: visible; }
.gfx text { font-family: var(--ak-display); font-weight: 600; }
/* SVG palette — LIGHT (white-on-blue) */
.gx-ink{fill:#fff}.gx-blue{fill:#eaf3ff}.gx-cyan{fill:#cfeeff}.gx-muted{fill:rgba(255,255,255,.74)}.gx-white{fill:#fff}
.gx-sb{stroke:rgba(255,255,255,.92);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gx-sc{stroke:#cfeeff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gx-sl{stroke:rgba(255,255,255,.45);fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.gx-soft{fill:rgba(255,255,255,.16)}
.gx-fs{fill:rgba(255,255,255,.14);stroke:rgba(255,255,255,.62);stroke-width:2}
.gx-hi{fill:rgba(255,255,255,.92);stroke:rgba(255,255,255,.5);stroke-width:1.5}
.gx-hi-text{fill:#1559b8}
.gx-dash{stroke-dasharray:4 5;animation:ak-flow 1.1s linear infinite}

/* --- DARK mode = dark instrument-panel look (kept) --- */
html[data-theme="dark"] .svc-hero {
   background:
      radial-gradient(120% 130% at 85% -20%, rgba(59,139,255,.30), transparent 60%),
      linear-gradient(rgba(126,166,230,.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(126,166,230,.07) 1px, transparent 1px),
      linear-gradient(160deg, #1b2840, #101a2b 60%, #0c1320);
   background-size: 100% 100%, 26px 26px, 26px 26px, 100% 100%;
   border-bottom: 1px solid rgba(46,82,150,.4);
}
html[data-theme="dark"] .svc-hero::after { background: linear-gradient(90deg, transparent, rgba(31,111,224,.6) 35%, rgba(20,153,216,.6) 65%, transparent); }
html[data-theme="dark"] .svc-eyebrow { color: #7fb2ff; }
html[data-theme="dark"] .gfx {
   border-color: rgba(46,82,150,.42);
   background:
      radial-gradient(135% 80% at 50% -12%, rgba(59,139,255,.24), transparent 60%),
      linear-gradient(rgba(126,166,230,.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(126,166,230,.08) 1px, transparent 1px),
      linear-gradient(162deg, #1b2840, #111b2c 58%, #0c1320);
   background-size: 100% 100%, 20px 20px, 20px 20px, 100% 100%;
   box-shadow: 0 22px 46px -26px rgba(10,20,45,.6);
}
html[data-theme="dark"] .gfx::before { background: linear-gradient(90deg, var(--ak-cyan), #3f8bff 45%, transparent); }
html[data-theme="dark"] .gfx-title { color: #93a6c6; }
html[data-theme="dark"] .gfx-led { background: #2fe08f; box-shadow: 0 0 7px #2fe08f; }
html[data-theme="dark"] .gfx svg, html[data-theme="dark"] .svc-hero-gfx svg { filter: drop-shadow(0 1px 5px rgba(63,139,255,.28)); }
html[data-theme="dark"] .gx-ink{fill:#e9f1fb}
html[data-theme="dark"] .gx-blue{fill:#4a90ff}
html[data-theme="dark"] .gx-cyan{fill:#2ec2ee}
html[data-theme="dark"] .gx-muted{fill:#93a6c6}
html[data-theme="dark"] .gx-sb{stroke:#4a90ff}
html[data-theme="dark"] .gx-sc{stroke:#2ec2ee}
html[data-theme="dark"] .gx-sl{stroke:rgba(126,166,230,.42)}
html[data-theme="dark"] .gx-soft{fill:rgba(63,139,255,.16)}
html[data-theme="dark"] .gx-fs{fill:rgba(63,139,255,.15);stroke:#4a90ff}
html[data-theme="dark"] .gx-hi{fill:#2f6fe0;stroke:#4a90ff}
html[data-theme="dark"] .gx-hi-text{fill:#fff}

@media (max-width: 991px) {
   .svc-hero { padding: 22px 0 24px; }
   .svc-hero-inner { flex-direction: column; gap: 22px; }
   .svc-hero-text { text-align: center; }
   .svc-hero-text h1 { font-size: 30px; }
   .svc-hero-text .svc-sub { margin-left: auto; margin-right: auto; }
   .svc-hero-gfx { width: 100%; }
}
@media (max-width: 767px) {
   #services .wrapper .gfx { float: none !important; margin: 0 0 16px 0 !important; width: 100% !important; }
}

/* keyframes (ak-theme.css isn't loaded on inner pages) */
@keyframes ak-flow  { to { stroke-dashoffset: -24; } }
@keyframes ak-blink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* =========================================================================
   FORMS + MODALS (shared: careers, contact, auth) — token-driven, dark-aware
   ========================================================================= */
.form-control {
   background: var(--ak-panel); color: var(--ak-ink);
   border: 1px solid var(--ak-line); border-radius: 8px; padding: 12px 14px;
   font-family: var(--ak-body); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: var(--ak-dim); }
.form-control:focus {
   background: var(--ak-panel); color: var(--ak-ink);
   border-color: var(--ak-blue); box-shadow: 0 0 0 3px rgba(31,111,224,.16); outline: none;
}
.modal-content { background: var(--ak-panel); border: 1px solid var(--ak-line); border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(20,40,90,.6); }
.modal-header { border-bottom: 1px solid var(--ak-line); }
.modal-title { color: var(--ak-ink); font-family: var(--ak-display); font-weight: 700; }
.modal-header .close, .modal-header .btn-close { color: var(--ak-muted); background: transparent; border: 0; font-size: 22px; opacity: .8; }

/* =========================================================================
   CAREERS — job listings table
   ========================================================================= */
.job-listings { padding: 6px 0 72px; background: transparent; }
.job-listings h5 {
   font-family: var(--ak-display); color: var(--ak-ink); font-size: 19px; font-weight: 700;
   position: relative; padding-left: 14px;
}
.job-listings h5::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--ak-cyan), var(--ak-blue)); }
.job-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden;
   background: transparent; border: 1px solid var(--ak-line); box-shadow: 0 26px 54px -32px rgba(20,40,90,.45); }
.job-table thead th {
   background: linear-gradient(135deg, #2f7be6, var(--ak-blue)); color: #fff;
   font-family: var(--ak-display); font-weight: 600; letter-spacing: .03em; text-align: left;
   font-size: 12px; text-transform: uppercase;
   padding: 10px 16px; border: 0;
}
.job-table tbody td { background: var(--ak-panel); color: var(--ak-muted); font-size: 14px; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--ak-line); line-height: 1.6; }
.job-table tbody tr:last-child td { border-bottom: 0; }
.job-table tbody td b { color: var(--ak-ink); }
.job-desc a { color: var(--ak-blue); font-weight: 600; font-family: var(--ak-display); cursor: pointer; }
.job-desc a:hover { color: var(--ak-blue-hi); }

@media (max-width: 767px) {
   .job-table, .job-table tbody, .job-table tr, .job-table td { display: block; width: 100%; }
   .job-table thead { display: none; }
   .job-table tbody tr { margin-bottom: 16px; border: 1px solid var(--ak-line); border-radius: 12px; overflow: hidden; }
   .job-table tbody td { border-bottom: 1px solid var(--ak-line); }
   .job-table tbody td:last-child { border-bottom: 0; }
}

/* =========================================================================
   CAREERS — "Apply" modal. Refreshed: gradient header band, full-width
   stacked fields (markup wraps each in col-md-6/8 — overridden here), a
   drop-zone styled file input, and a full-width gradient submit button.
   ========================================================================= */
#careersModal .modal-dialog { max-width: 560px; }
#careersModal .modal-content { width: 100%; border-radius: 18px; overflow: hidden; box-shadow: 0 50px 100px -34px rgba(20,40,90,.6); }
#careersModal .modal-header {
   position: relative; padding: 22px 26px;
   background: linear-gradient(135deg, #2f7be6, var(--ak-blue));
   border-bottom: 0;
}
#careersModal .modal-title { color: #fff; font-size: 21px; }
#careersModal .modal-title #job-title { font-weight: 700; }
#careersModal .modal-header .close {
   position: absolute; top: 14px; right: 16px; width: 34px; height: 34px;
   display: inline-flex; align-items: center; justify-content: center;
   color: #fff; opacity: .9; font-size: 22px; line-height: 1;
   background: rgba(255,255,255,.16); border: 0; border-radius: 50%;
   transition: background .2s ease, transform .2s ease;
}
#careersModal .modal-header .close:hover { opacity: 1; background: rgba(255,255,255,.3); transform: rotate(90deg); }
#careersModal .modal-body { padding: 24px 26px 28px; }

/* the markup constrains every field to col-md-6/8 and legacy style.css pins
   .form-group / .message-row to a fixed 600px — reset all of it to full width */
#careersModal .careers-form .row { margin: 0; width: auto; }
#careersModal .careers-form [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; width: auto; padding: 0; }
#careersModal .careers-form .form-group { width: auto; margin-bottom: 14px; padding: 0; }
#careersModal .careers-form .form-control { width: 100%; }
#careersModal .careers-form textarea.form-control { min-height: 110px; resize: vertical; }

/* file input as a tidy drop-zone */
#careersModal .careers-form input[type="file"] {
   padding: 11px 14px; background: var(--ak-bg-2);
   border: 1px dashed var(--ak-line-2); border-radius: 8px; cursor: pointer;
}
#careersModal .careers-form input[type="file"]::file-selector-button {
   margin-right: 12px; padding: 7px 14px; cursor: pointer;
   color: var(--ak-blue); font-family: var(--ak-display); font-weight: 600;
   background: rgba(31,111,224,.10); border: 1px solid rgba(31,111,224,.28); border-radius: 7px;
   transition: background .2s ease, color .2s ease;
}
#careersModal .careers-form input[type="file"]::file-selector-button:hover { background: var(--ak-blue); color: #fff; }

/* submit: full-width gradient action */
#careersModal .form-submit { margin-top: 20px; }
#careersModal .form-submit .btn {
   width: 100%; padding: 13px 18px; border: 0; border-radius: 10px;
   color: #fff; font-family: var(--ak-display); font-weight: 600; letter-spacing: .02em;
   background: linear-gradient(135deg, #2f7be6, var(--ak-blue));
   box-shadow: 0 16px 30px -14px rgba(31,111,224,.8);
   transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
#careersModal .form-submit .btn:hover { filter: brightness(1.05); box-shadow: 0 20px 36px -14px rgba(31,111,224,.9); }
#careersModal .form-submit .btn:active { transform: translateY(1px); }
#careersModal .careers-form .alert { border-radius: 9px; }

/* =========================================================================
   CONTACT page — form panel, custom subject select, location/map
   ========================================================================= */
/* Contact page only: compact, centered hero (icons removed) so the form fits on screen */
.contact-hero { padding: 16px 0 18px; margin-bottom: 22px; }
.contact-hero .svc-hero-inner { justify-content: center; }
.contact-hero .svc-hero-text { text-align: center; }
.contact-hero .svc-hero-text h1 { font-size: 32px; }
.contact-section { background: transparent !important; padding: 8px 20px 56px; }
/* Stack: contact form on top, location/map below (was side-by-side) */
.contact-container { display: flex; flex-direction: column; gap: 28px; max-width: 1000px; margin: 0 auto; }
.contact-form, .contact-info {
   background: var(--ak-panel); border: 1px solid var(--ak-line); border-radius: 16px;
   padding: 30px 32px; box-shadow: 0 26px 54px -32px rgba(20,40,90,.45);
}
.contact-form h2, .contact-info h2 { color: var(--ak-ink); font-family: var(--ak-display); font-weight: 700; position: relative; padding-bottom: 12px; margin-bottom: 6px; }
.contact-form h2::after, .contact-info h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 60px; border-radius: 2px; background: linear-gradient(90deg, var(--ak-cyan), var(--ak-blue)); }
.contact-form > p { color: var(--ak-muted); margin-bottom: 22px; }
/* two-column field grid: name|phone, email|subject, message=full width */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.contact-grid .form-group { margin: 0; }
.contact-grid .form-group.full { grid-column: 1 / -1; }
.custom-select-container { position: relative; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.selected-option {
   width: 100%; box-sizing: border-box; background: var(--ak-panel); color: var(--ak-ink);
   border: 1px solid var(--ak-line); border-radius: 8px; padding: 12px 14px; margin: 0;
   font-family: var(--ak-body); transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus {
   border-color: var(--ak-blue); box-shadow: 0 0 0 3px rgba(31,111,224,.16); outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ak-dim); }
.contact-form .btn { margin-top: 4px; }
/* custom subject dropdown */
.selected-option { cursor: pointer; }
.dropdown-options { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 240px; overflow-y: auto;
   background: var(--ak-panel); border: 1px solid var(--ak-line); border-radius: 8px; box-shadow: 0 22px 44px -20px rgba(20,40,90,.5); }
.option { color: var(--ak-muted); padding: 10px 14px; cursor: pointer; }
.option:hover { background: rgba(31,111,224,.10); color: var(--ak-blue); }
/* location / map panel */
.contact-info p { color: var(--ak-muted); }
.contact-info p strong { color: var(--ak-ink); }
.contact-info h3 { color: var(--ak-ink); font-family: var(--ak-display); margin-top: 18px; }
.contact-info iframe { display: block; height: 360px; margin-top: 12px; border-radius: 12px; border: 1px solid var(--ak-line) !important; box-shadow: 0 20px 44px -26px rgba(20,40,90,.4); }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } .contact-form, .contact-info { padding: 24px 20px; } }

/* =========================================================================
   SERVICE / PRODUCT DETAIL PAGES — content + CTA + feature image
   ========================================================================= */
.service-details-area { padding: 12px 0 56px; background: transparent; }
.services-details-img h2, .service-details-inner h2 { color: var(--ak-ink); font-family: var(--ak-display); font-weight: 700; }
.services-details-img p, .service-details-inner p { color: var(--ak-muted); line-height: 1.85; }
.service-details-inner { padding-left: 6px; }

/* Enquire / appointment CTA band (home's .appointment styling isn't loaded here) */
.appointment {
   position: relative; padding: 66px 0; border-top: 1px solid var(--ak-line);
   background:
      radial-gradient(800px 420px at 50% 120%, rgba(31,111,224,.16), transparent 60%),
      linear-gradient(180deg, var(--ak-bg-2), #dfe9f8);
}
.appointment .section-title h2 { color: var(--ak-ink); }
.appointment .section-title p { color: var(--ak-muted); }
html[data-theme="dark"] .appointment {
   border-top-color: var(--ak-line);
   background:
      radial-gradient(800px 420px at 50% 120%, rgba(59,139,255,.22), transparent 60%),
      linear-gradient(180deg, #141d2a, #0d121a);
}

/* feature image (stripped-background product/illustration) on the themed banner;
   a soft light backing keeps dark logo art legible on both blue + dark panels */
.ak-feature { position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; }
.ak-feature::before {
   content: ""; position: absolute; left: 6%; right: 6%; top: 4%; bottom: 4%;
   background: radial-gradient(ellipse at 48% 52%, rgba(255,255,255,.82), rgba(255,255,255,0) 66%);
}
.ak-feature img { position: relative; max-width: 100%; max-height: 158px; object-fit: contain;
   filter: drop-shadow(0 10px 20px rgba(0,0,0,.18)); }

/* neutralise the legacy left-slot background photos on detail pages (we place
   graphics there instead); also let the slot size to its content */
[class*="service-details-inner-left"] { background-image: none !important; height: auto !important; }
.service-details-inner-left040101 .gfx, .service-details-inner-left040101 { margin-bottom: 16px; }

/* logo-only feature (colourful mark, no dark text) — no light backing needed */
.ak-feature-logo::before { display: none; }
.ak-feature-logo img { max-height: 142px; filter: drop-shadow(0 12px 26px rgba(0,0,0,.30)); }

/* =========================================================================
   AUTH PAGES — login / admin / employee / register / password reset
   Token-based so a single set of rules themes both light + dark.
   ========================================================================= */
.form-control { width: 100%; box-sizing: border-box; }   /* legacy set a fixed 670px */

.login-section { background: transparent !important; min-height: 70vh; align-items: center; }
.login-bg-shape { opacity: .7; }
.login-card, .background-card, .card {
   background: var(--ak-panel) !important; border: 1px solid var(--ak-line) !important;
   box-shadow: 0 30px 60px -24px rgba(20,40,90,.45);
}
.card { max-width: 480px; margin: 0 auto; border-radius: 16px; padding: 8px; }
.login-card h2, .login-head h2, .background-card h2, .card h2, .card-body h2, .login-form h2 {
   color: var(--ak-ink); font-family: var(--ak-display);
}
.login-subtitle, .login-foot p,
.login-card label, .background-card label, .card label, .login-form label,
.login-card .form-group label { color: var(--ak-muted); }

.login-card .form-group input.form-control,
.login-card .input-with-icon input.form-control,
.card .form-control, .background-card .form-control {
   background: var(--ak-panel); border: 1px solid var(--ak-line); color: var(--ak-ink);
}
.login-card .input-with-icon i { color: var(--ak-dim); }
.login-foot p a, .login-card .login-foot p a, .highlighted-link, .card a, .background-card a { color: var(--ak-blue); }
.login-card .login-secure-chip { color: var(--ak-dim); }
.login-image img, .register-image { border-radius: 14px; }

/* password-reset success pages */
.success-alert {
   background: var(--ak-panel); border: 1px solid var(--ak-line); color: var(--ak-ink);
   border-radius: 16px; box-shadow: 0 26px 54px -30px rgba(20,40,90,.45);
}
.success-alert p, .success-alert h2, .success-alert .icon { color: var(--ak-ink); fill: var(--ak-blue); }

/* =========================================================================
   404 PAGE
   ========================================================================= */
.ak-404 { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 16px 80px; }
.ak-404-gfx { width: 230px; height: auto; display: block; margin: 0 auto 14px; overflow: visible; filter: drop-shadow(0 10px 24px rgba(31,111,224,.25)); }
.ak-404 .e-node { fill: var(--ak-panel); stroke: var(--ak-line-2); stroke-width: 2.5; }
.ak-404 .e-dot { fill: var(--ak-blue); }
.ak-404 .e-link { stroke: var(--ak-blue); stroke-width: 3; stroke-dasharray: 5 6; stroke-linecap: round; }
.ak-404 .e-break { stroke: var(--ak-cyan); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ak-404-num {
   font-family: var(--ak-display); font-weight: 700; font-size: 118px; line-height: 1; letter-spacing: .02em;
   background: linear-gradient(120deg, var(--ak-cyan), var(--ak-blue));
   -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ak-404 p { color: var(--ak-muted); font-size: 17px; margin: 14px 0 2px; }
.ak-404 .info { color: var(--ak-dim); font-size: 14px; }
.ak-404 .btn { margin-top: 26px; display: inline-block; color: #fff; }
@media (max-width: 575px) { .ak-404-num { font-size: 82px; } }
