/* =====================================================================
   AVERIXO -- Registration Page Styles  (matches the app login screen)
   By The Gate Solution -- averixo.com / gatetraders.pk
   ---------------------------------------------------------------------
   Brand tokens taken directly from the login page's own CSS:
     .login-panel / card frame ......... background-color: #001f3f;
                                          border-color:     #000f1e;
     .panel-primary > .panel-heading ... background-color: #E95420;
                                          border-color:     #E95420;
                                          color: #fff;
   Everything below is built from those two colors plus white, so the
   registration page reads as the same product as the login screen
   rather than a different-looking signup form bolted on afterward.

   Background photo: this file expects "Login-Page.jpg" to sit in the
   SAME directory as pos_registration.php/.css (the same image already
   used behind the login screen). If you ever move the registration
   page to a different folder, update the url() below to match, or
   swap it for any other background image using the same filename.
===================================================================== */

:root {
    --navy:        #001f3f;   /* primary panel / card background, from login page */
    --navy-dark:   #000f1e;   /* panel border, from login page */
    --navy-deeper: #00152b;   /* darker navy for gradients/overlays, derived */
    --orange:      #E95420;   /* primary accent + buttons, from login page */
    --orange-dark: #c8451a;   /* hover state, derived from orange */
    --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(--navy);
}

a { color: inherit; }

.page {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* -----------------------------------------------------------------
   LEFT: brand / intro panel -- the same navy + background photo used
   on the login screen, with the product pitch and Book a Free Demo.
------------------------------------------------------------------ */
.intro-panel {
    flex: 1 1 46%;
    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%),
        url('Login-Page.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.intro-panel-inner {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.brand-mark {
    margin-bottom: 28px;
}
.brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
}

.intro-heading {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.intro-copy {
    font-size: 15.5px;
    color: rgba(255,255,255,0.82);
    margin: 0 0 28px;
    max-width: 420px;
}

.intro-points {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.intro-points li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: rgba(255,255,255,0.92);
}
.intro-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange);
    font-weight: 800;
}

.intro-cta-copy {
    font-size: 13.5px;
    color: rgba(255,255,255,0.82);
    margin: 0 0 16px;
    max-width: 420px;
}

.intro-cta-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
}

/* Buttons are built the same way as .btn-primary on the form panel --
   full-block, solid fill/border, generous padding -- so they always
   read as buttons and never collapse into plain text links. */
.btn-demo,
.btn-pricing {
    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;
    line-height: 1.2;
    text-decoration: none !important;
    padding: 14px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
}

.btn-icon { font-size: 11px; }

/* orange primary -- the live, interactive demo */
.btn-demo {
    background-color: var(--orange);
    color: var(--white) !important;
    border: 2px solid var(--orange);
}
.btn-demo:hover {
    background-color: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white) !important;
}

/* solid grey secondary -- pricing, clearly a button, not a link */
.btn-pricing {
    background-color: rgba(255,255,255,0.12);
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,0.55);
}
.btn-pricing:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.8);
    color: var(--white) !important;
}

.btn-demo:active,
.btn-pricing:active { transform: translateY(1px); }

/* -----------------------------------------------------------------
   RIGHT: the signup form panel
------------------------------------------------------------------ */
.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;
}

.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: same colors as .panel-primary > .panel-heading on the login page */
.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; }

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; }

.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;
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.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; }

/* Post-signup success card -- fully inline-styled in the PHP itself
   (see panel-body's $success branch) for the same reliability reason
   as the intro-panel CTA buttons: this card must render correctly even
   if this stylesheet fails to load on the server. These rules are kept
   only as the canonical reference/fallback layer; the inline styles in
   the markup are the ones that actually guarantee the look. */
.success-card { font-family: inherit; }

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

.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; }

/* -----------------------------------------------------------------
   Forgot-password link under the login form's password field, and
   the "Back to sign-in" link used on every step of the reset flow --
   same visual weight/placement as the Payoneer reference this flow is
   modeled on.
------------------------------------------------------------------ */
.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; }

/* -----------------------------------------------------------------
   Password strength meter + live requirement checklist, used on the
   "Create a new password" step of the reset flow (pos_registration.js
   drives the width/color/checklist state; these rules are just the
   visual shell).
------------------------------------------------------------------ */
.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"; /* en dash, neutral/not-yet-met state */
    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 on the right, used on the registration and login pages
   (and every step of the reset flow). Deliberately plain/muted so it
   never competes with the form card above it.
------------------------------------------------------------------ */
.site-footer {
    max-width: 460px;
    margin: 28px 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);
}
.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; }

@media (max-width: 420px) {
    .site-footer { justify-content: center; text-align: center; }
}

/* -----------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 900px) {
    .intro-panel { padding: 44px 36px; }
    .intro-heading { font-size: 24px; }
}

@media (max-width: 760px) {
    .page { flex-direction: column; }
    .intro-panel, .form-panel { flex: 1 1 auto; width: 100%; }
    .intro-panel { padding: 40px 24px; }
    .form-panel { padding: 36px 20px 48px; }
    .form-row-split { grid-template-columns: 1fr; }
    .form-row-split > div { margin-bottom: 16px; }
    .intro-points { margin-bottom: 26px; }
}

@media (max-width: 420px) {
    .panel-body { padding: 24px 20px 26px; }
    .panel-heading { padding: 20px 20px; }
    .intro-heading { font-size: 21px; }
    .intro-cta-row { max-width: 100%; }
}
