/* =====================================================================
   AVERIXO -- shared theme CSS for the registration + login +
   password-reset pages
   Save as: /public_html/app_pos/login_theme.css
   Loaded from login_theme.php's own loginThemeHead() via:
       <link rel="stylesheet" href="login_theme.css">

   v2 (this rewrite): REPLACES login_theme.php's old inline <style>
   block entirely -- pulled out to its own file for the same reason
   Gate Traders' gt_theme.css was split out: CSS changes no longer
   require touching the PHP file, and the browser caches this one file
   across all 5 pages that share it, instead of re-downloading an
   identical inline block on each page.

   Brand tokens match pos_registration.css exactly (same navy/orange
   palette used everywhere in the Averixo app), so this file,
   pos_registration.css, and the app itself all read as one product.

   Side-panel content (heading, intro, feature list, single Try Live
   Demo button -- View Pricing REMOVED per instruction) is now shared
   by ALL FIVE pages via login_theme.php's loginThemeSidePanel(),
   instead of pos_registration.php hard-coding its own separate
   two-column layout. This file supplies BOTH layout modes:
     - .page / .side-panel / .login-wrap -- used by the 4 login/reset
       pages (single form column).
     - .page / .side-panel / .form-panel -- used by pos_registration.php
       (wider form column, since the signup form has more fields).
   Both share the exact same .side-panel rules, so the left panel is
   pixel-identical everywhere it appears.
===================================================================== */

:root {
    --navy:        #001f3f;   /* primary panel / card background */
    --navy-dark:   #000f1e;   /* panel border */
    --orange:      #E95420;   /* primary accent + buttons */
    --orange-dark: #c8451a;   /* hover state */
    --white:       #ffffff;
    --paper:       #f5f7fa;   /* light neutral for the form panel background */
    --ink:         #182634;   /* body text on light backgrounds */
    --muted:       #5c6b7a;   /* secondary text on light backgrounds */
    --line:        #dbe1e8;   /* input borders on light backgrounds */
    --error-bg:    #fdecea;
    --error-text:  #7a2118;
    --success-bg:  #e9f5ee;
    --success-text:#1c4a34;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.55;
    background: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; }

.dev-banner {
    background-color: #fff3cd; color: #664d03; text-align: center;
    font-size: 12.5px; font-weight: 600; padding: 8px 16px;
    border-bottom: 1px solid #ffe69c;
}

/* Two-column page shell -- side panel + form. On narrow screens the
   side panel disappears entirely and the form column alone centers
   its card, same behavior on every page that uses this shell. */
.page {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    min-height: 0;
}

.side-panel {
    flex: 1 1 44%;
    min-width: 320px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 56px 48px;
    background-color: var(--navy);
    background-image: linear-gradient(160deg, rgba(0,31,63,0.94) 0%, rgba(0,21,43,0.90) 55%, rgba(0,15,30,0.95) 100%);
    color: var(--white);
    /* The panel now carries a lot more content than a bare heading +
       one paragraph -- intro, a 4-item feature list, and a full CTA
       block. On a short/laptop viewport height that combined block can
       be taller than the panel itself. max-height + overflow-y here
       (not on .side-panel-inner) means the SCROLLBAR, if one ever
       appears, tracks the whole navy panel edge-to-edge rather than a
       narrow inner column -- so it never clips the "Try Live Demo"
       button off screen, it just scrolls gracefully instead. */
    max-height: 100vh;
    overflow-y: auto;
}
.side-panel-inner { max-width: 420px; margin: 0 auto; width: 100%; }
.side-panel-brand { margin-bottom: 28px; }
.side-panel-brand img {
    display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain;
}
.side-panel-heading {
    font-size: 26px; font-weight: 800; line-height: 1.25;
    margin: 0 0 14px; letter-spacing: -0.01em;
}
.side-panel-copy { font-size: 15px; color: rgba(255,255,255,0.82); margin: 0 0 18px; max-width: 400px; }
.side-panel-copy:last-child { margin-bottom: 0; }

/* Feature bullet list -- checkmark style, matching the orange accent
   used everywhere else in the theme. Plain <ul>/<li>, no external icon
   font dependency. */
.side-panel-features {
    list-style: none; margin: 0 0 20px; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.side-panel-features li {
    position: relative; padding-left: 26px;
    font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.45;
}
.side-panel-features li::before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    color: var(--orange); font-weight: 800; font-size: 14px;
}

/* Live-demo call-to-action block -- ONE button only (View Pricing
   removed per instruction). Solid filled-orange, matching the app's
   own .btn-primary treatment and sized identically to Gate Traders'
   own side-panel CTA button (14.5px font, 13px/18px padding, 8px
   radius) so both products' buttons now match exactly. */
.side-panel-cta {
    margin-top: 24px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.14);
}
.side-panel-cta-lead {
    font-size: 13.5px; color: rgba(255,255,255,0.78); line-height: 1.55;
    margin: 0 0 14px; max-width: 380px;
}
.side-panel-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; box-sizing: border-box; font-family: inherit; font-weight: 700;
    font-size: 14.5px; text-decoration: none !important; padding: 13px 18px; border-radius: 8px;
    background: var(--orange); color: var(--white) !important;
    border: 2px solid var(--orange);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.side-panel-cta-btn:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white) !important;
}

/* -----------------------------------------------------------------
   FORM COLUMN -- mode A: single centered card (login, forgot, verify,
   reset pages).
------------------------------------------------------------------ */
.login-wrap {
    flex: 1 1 56%;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 20px;
}
.login-inner { width: 100%; max-width: 440px; }

/* -----------------------------------------------------------------
   FORM COLUMN -- mode B: registration page's own wider form panel
   (more fields: business name, contact name, email, password x2,
   phone, country -- needs the extra width the login-form pages don't).
------------------------------------------------------------------ */
.form-panel {
    flex: 1 1 54%;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    padding: 48px 24px;
}
.form-panel-inner { width: 100%; max-width: 460px; }

/* Dark-on-white brand mark shown above the form card -- the DARK logo
   variant, since it sits on a white/paper background here, not the
   navy side panel. Hidden on wide screens where the side panel
   (which already carries the white logo) is visible, so a mobile
   visitor still sees the brand mark exactly once, never zero or
   twice. */
.form-logo { display: none; text-align: center; margin: 0 0 20px; }
.form-logo img { display: inline-block; height: 34px; width: auto; max-width: 200px; object-fit: contain; }

@media (max-width: 900px) {
    .side-panel { display: none; }
    .login-wrap { flex: 1 1 100%; }
    .form-panel { flex: 1 1 100%; }
    .form-logo { display: block; }
}

.form-card {
    background: var(--white);
    border: 1px solid var(--navy);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px -18px rgba(0,31,63,0.35);
}
.panel-heading {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    padding: 22px 28px;
}
.panel-heading h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.panel-heading p  { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.9); }
.panel-body { padding: 28px 28px 30px; }

.form-row { margin-bottom: 16px; }
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}
.form-row-split > div { margin-bottom: 16px; }
@media (max-width: 520px) {
    .form-row-split { grid-template-columns: 1fr; }
}

label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--navy); }
.req { color: var(--orange); font-weight: 700; }
.hint {
    font-size: 11.5px; color: var(--muted); margin: -10px 0 16px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

input[type=text], input[type=email], input[type=tel], input[type=password] {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: 8px; font-size: 14.5px; background: #fbfcfd;
    color: var(--ink); font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: #a7b1bb; }
input:focus {
    outline: none; border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(233,84,32,0.15);
}
input.field-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.field-hp { position: absolute; left: -9999px; top: -9999px; }

.forgot-link {
    display: block; text-align: right; font-size: 12.5px;
    font-weight: 600; color: var(--orange); text-decoration: none;
    margin: -8px 0 16px;
}
.forgot-link:hover { text-decoration: underline; }

.back-to-signin {
    display: block; text-align: center; font-size: 13.5px;
    font-weight: 700; color: var(--orange); text-decoration: none;
    margin-top: 18px;
}
.back-to-signin:hover { text-decoration: underline; }

.btn-primary {
    width: 100%; padding: 13px 16px; background: var(--orange);
    color: var(--white); border: 1px solid var(--orange);
    border-radius: 8px; font-size: 15.5px; font-weight: 700;
    cursor: pointer; letter-spacing: 0.01em; margin-top: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-align: center; text-decoration: none; display: block;
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.msg { border-radius: 8px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px; }
.msg-error   { background: var(--error-bg);   color: var(--error-text); }
.msg-success { background: var(--success-bg); color: var(--success-text); }
.msg ul { margin: 4px 0 0; padding-left: 18px; }

.form-foot-note { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.form-foot-note a { color: var(--orange); text-decoration: none; font-weight: 600; }
.form-foot-note a:hover { text-decoration: underline; }

.signin-foot { text-align: center; color: var(--navy); font-size: 13px; margin-top: 20px; }
.signin-foot a { color: var(--orange); text-decoration: none; font-weight: 700; }
.signin-foot a:hover { text-decoration: underline; }

/* Password strength meter + live requirement checklist, used on
   "Create a new password" (login_find_workspace_reset.php). */
.pw-strength-track {
    height: 4px; border-radius: 2px; background: var(--line);
    margin: -8px 0 14px; overflow: hidden;
}
.pw-strength-fill {
    height: 100%; width: 0%; border-radius: 2px;
    background: #c0392b; transition: width 0.2s ease, background-color 0.2s ease;
}
.pw-strength-fill.weak   { background: #c0392b; }
.pw-strength-fill.medium { background: #E95420; }
.pw-strength-fill.strong { background: #1c4a34; }
.pw-checklist { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pw-checklist li { font-size: 12px; color: var(--muted); position: relative; padding-left: 20px; }
.pw-checklist li::before { content: "\2013"; position: absolute; left: 0; font-weight: 700; color: var(--muted); }
.pw-checklist li.met { color: var(--success-text); }
.pw-checklist li.met::before { content: "\2713"; color: var(--success-text); }

/* Site footer -- copyright + thegatesolution.com on the left, Contact
   Us -> averixo.com/contact-us/ on the right -- used on every page
   this theme covers. */
.site-footer {
    max-width: 440px; margin: 24px auto 0; padding: 18px 4px 0;
    border-top: 1px solid rgba(0,31,63,0.08);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted);
}
.form-panel-inner .site-footer { max-width: 460px; }
.site-footer-copy { line-height: 1.6; }
.site-footer-copy a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-footer-copy a:hover { color: var(--orange); text-decoration: underline; }
.site-footer-contact a { color: var(--orange); text-decoration: none; font-weight: 700; }
.site-footer-contact a:hover { text-decoration: underline; }

/* "Your workspace is ready" style success card, reused on
   pos_registration.php after signup, login_find_workspace.php after
   sign-in, and login_find_workspace_reset.php after a completed reset. */
.success-card {
    background-color: var(--success-bg); border: 1px solid #bfe3cf;
    border-radius: 10px; padding: 20px 20px 22px;
}
.success-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.success-card-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background-color: var(--success-text); color: var(--white);
    font-size: 15px; font-weight: 800; flex: 0 0 auto;
}
.success-card-title { font-size: 15.5px; font-weight: 800; color: var(--success-text); }
.success-card-body { margin: 0 0 16px; font-size: 13.5px; color: var(--success-text); line-height: 1.6; }
.success-card-slug-box {
    background-color: var(--white); border: 1px solid #bfe3cf; border-radius: 8px;
    padding: 12px 14px; margin-bottom: 16px; display: flex; align-items: center;
    justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.success-card-slug {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px; color: var(--ink); font-weight: 600;
}
.success-card-slug-tag {
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--success-text); background-color: #d5efe0; padding: 3px 9px;
    border-radius: 20px; flex: 0 0 auto;
}
.success-card-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; box-sizing: border-box; font-family: inherit; font-weight: 700;
    font-size: 15px; text-decoration: none; padding: 14px 18px; border-radius: 8px;
    margin-bottom: 12px;
}
.success-card-btn.primary { background-color: var(--success-text); color: var(--white); border: 2px solid var(--success-text); }
.success-card-btn.secondary { background-color: var(--orange); color: var(--white); border: 2px solid var(--orange); margin-bottom: 0; }

code { background: #eef1f4; padding: 2px 6px; border-radius: 4px; font-size: 12.5px; }

@media (max-width: 420px) {
    .panel-body { padding: 24px 20px 26px; }
    .panel-heading { padding: 20px 20px; }
    .site-footer { justify-content: center; text-align: center; }
}

/* Shorter viewports (laptops in particular -- browser chrome/taskbar
   eats real screen height even on a 16" display) -- switch the page
   from vertically-centered to top-anchored so a slightly-too-tall card
   never gets clipped or forces a page scrollbar to reach the submit
   button. */
@media (max-height: 820px) {
    .login-wrap { align-items: flex-start; padding-top: 18px; padding-bottom: 18px; }
    .form-panel { align-items: flex-start; padding-top: 32px; padding-bottom: 32px; }
    /* align-items: flex-start here means the CTA button is the part
       that would clip first if the panel ever runs out of height --
       overflow-y: auto set on .side-panel (base rule) is what keeps it
       reachable by scrolling instead. */
    .side-panel { align-items: flex-start; padding-top: 32px; padding-bottom: 32px; }
}

/* Very short viewports (e.g. a laptop with browser chrome open, height
   under ~700px) -- trim the side panel's own vertical rhythm further
   so the full content (heading + copy + feature list + CTA) is more
   likely to fit without needing to scroll at all. Doesn't touch font
   sizes, only spacing. */
@media (max-height: 700px) {
    .side-panel-brand { margin-bottom: 18px; }
    .side-panel-heading { margin-bottom: 10px; }
    .side-panel-copy { margin-bottom: 12px; }
    .side-panel-features { margin-bottom: 14px; gap: 7px; }
    .side-panel-cta { margin-top: 16px; padding-top: 16px; }
    .side-panel-cta-lead { margin-bottom: 10px; }
}
