/* ============================================================
   geolist-login.css
   Self-contained stylesheet for the CodeIgniter login views.
   Matches the Geolist Wholesale (join.geolist.co.uk) design.
   Replaces Bootstrap — no other CSS file needed for these views.
   ============================================================ */

/* ---------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* ---------------------------------------------------------- Variables */
:root {
    --gl-navy:       #151f2e;   /* deepest background                 */
    --gl-navy-mid:   #1a2638;   /* header / footer                    */
    --gl-navy-card:  #1e2d40;   /* card on dark surface               */
    --gl-cta:        #2d6b5e;   /* primary button (dark teal-green)   */
    --gl-cta-dark:   #255c50;   /* primary button hover               */
    --gl-teal:       #00AECC;   /* accent cyan — icons, links only    */
    --gl-white:      #ffffff;
    --gl-off-white:  #f0f2f5;
    --gl-border:     #e2e8ef;
    --gl-text:       #151f2e;
    --gl-text-muted: #64748b;
    --gl-text-light: #94a3b8;
    --gl-error-bg:   #fef2f2;
    --gl-error-border: #fca5a5;
    --gl-error-text: #b91c1c;
    --gl-success-bg:   #f0fdf4;
    --gl-success-border: #86efac;
    --gl-success-text:   #15803d;
    --gl-radius:     10px;
    --gl-radius-sm:  6px;
    --gl-shadow-md:  0 8px 40px rgba(0,0,0,.22);
    --gl-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gl-header-h:   72px;
}

/* ---------------------------------------------------------- Base */
body {
    font-family: var(--gl-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gl-text);
    background: var(--gl-off-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { color: var(--gl-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------- Page wrapper */
.gl-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------------------------------------------------------- Container */
.gl-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------------------------------------------------------- Header */
.gl-header {
    background: var(--gl-navy-mid);
    height: var(--gl-header-h);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
    display: flex;
    align-items: center;
}

.gl-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gl-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gl-header__icon {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}

.gl-header__wordmark {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.gl-header__nav {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.gl-header__nav-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,.5);
}

.gl-header__nav-link {
    font-size: 0.875rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
}

.gl-header__nav-link:hover {
    color: var(--gl-white);
    text-decoration: none;
}

.gl-header__nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: rgba(255,255,255,.85);
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--gl-radius-sm);
    cursor: pointer;
    flex-shrink: 0;
}

.gl-header__nav-toggle:hover {
    background: rgba(255,255,255,.08);
}

.gl-header__nav-toggle:focus-visible {
    outline: 3px solid var(--gl-teal);
    outline-offset: 2px;
}

.gl-header__nav-toggle svg {
    pointer-events: none;
}


/* ---------------------------------------------------------- Main */
.gl-main {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.gl-main__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 0;
}

/* ---------------------------------------------------------- Split panels */
.gl-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.gl-panel--dark {
    background: var(--gl-navy);
    flex: 1.1;
}

.gl-panel--light {
    background: var(--gl-off-white);
    flex: 0.9;
}

/* ---------------------------------------------------------- Dark panel content */
.gl-panel__content {
    max-width: 440px;
    width: 100%;
}

.gl-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gl-teal);
    margin-bottom: 1rem;
}

.gl-panel__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gl-white);
    margin-bottom: 1rem;
}

.gl-panel__body {
    font-size: 0.9375rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin-bottom: 0.875rem;
}

/* ---------------------------------------------------------- Feature list */
.gl-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.gl-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,.8);
    line-height: 1.5;
}

.gl-feature-icon { flex-shrink: 0; margin-top: 2px; }

/* ---------------------------------------------------------- Form card */
.gl-form-card {
    background: var(--gl-white);
    border-radius: var(--gl-radius);
    box-shadow: var(--gl-shadow-md);
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 420px;
}

.gl-form-card__header {
    margin-bottom: 1.75rem;
}

.gl-form-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gl-teal);
    text-align: center;
    margin-bottom: 0.375rem;
}

.gl-form-card__title {
    font-size: 1.4375rem;
    font-weight: 700;
    color: var(--gl-text);
    text-align: center;
    margin-bottom: 0.375rem;
}

.gl-form-card__sub {
    font-size: 0.875rem;
    color: var(--gl-text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ---------------------------------------------------------- Form card icon */
.gl-form-card__icon {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 1rem;
}

/* ---------------------------------------------------------- OS badge (dark panel) */
.gl-os-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.gl-os-badge__logo {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    opacity: 1;
    filter: brightness(1.1);
}

.gl-os-badge__label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.55);
    line-height: 1.4;
}

/* ---------------------------------------------------------- Footer brand */
.gl-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.gl-footer__icon {
    height: 28px;
    width: auto;
    flex-shrink: 0;
    opacity: .75;
}

/* ---------------------------------------------------------- Alerts */
.gl-alert {
    border-radius: var(--gl-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.gl-alert--error {
    background: var(--gl-error-bg);
    border: 1px solid var(--gl-error-border);
    color: var(--gl-error-text);
}

.gl-alert--success {
    background: var(--gl-success-bg);
    border: 1px solid var(--gl-success-border);
    color: var(--gl-success-text);
}

/* ---------------------------------------------------------- Form elements */
.gl-form { display: flex; flex-direction: column; gap: 1.125rem; }

.gl-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.gl-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gl-text);
}

.gl-input {
    width: 100%;
    padding: 0.7rem 0.875rem;
    font-family: var(--gl-font);
    font-size: 0.9375rem;
    color: var(--gl-text);
    background: var(--gl-white);
    border: 1.5px solid var(--gl-border);
    border-radius: var(--gl-radius-sm);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
}

.gl-input::placeholder { color: var(--gl-text-light); }

.gl-input:focus {
    border-color: var(--gl-cta);
    box-shadow: 0 0 0 3px rgba(45,107,94,.15);
}

/* ---------------------------------------------------------- Buttons */
.gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--gl-font);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--gl-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: .01em;
    transition: background .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
}

.gl-btn--primary {
    background: var(--gl-cta);
    color: var(--gl-white);
    border-color: var(--gl-cta);
}

.gl-btn--primary:hover {
    background: var(--gl-cta-dark);
    border-color: var(--gl-cta-dark);
    box-shadow: 0 4px 14px rgba(45,107,94,.3);
    color: var(--gl-white);
    text-decoration: none;
}

.gl-btn--full { width: 100%; margin-top: 0.25rem; }

/* ---------------------------------------------------------- Form card links */
.gl-form-card__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

.gl-link {
    font-size: 0.875rem;
    color: var(--gl-text-muted);
    text-decoration: none;
    transition: color .12s ease;
}

.gl-link:hover { color: var(--gl-cta); text-decoration: none; }

.gl-link--light {
    color: rgba(255,255,255,.7);
    text-decoration: underline;
}

.gl-link--light:hover { color: var(--gl-white); }

/* ---------------------------------------------------------- Footer */
.gl-footer {
    background: var(--gl-navy-mid);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.25rem 0;
}

.gl-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gl-footer__copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.45);
    line-height: 1.5;
}

.gl-footer__nav {
    display: flex;
    gap: 1.25rem;
}

.gl-footer__link {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.4);
    text-decoration: none;
}

.gl-footer__link:hover { color: rgba(255,255,255,.75); text-decoration: none; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 860px) {
    .gl-main__inner { flex-direction: column; }

    .gl-panel {
        flex: none;
        width: 100%;
        padding: 2.5rem 1.5rem;
    }

    .gl-panel--dark { padding-bottom: 2rem; }

    .gl-form-card { max-width: 100%; }
}

@media (max-width: 760px) {
    .gl-container {
        padding: 0 1rem;
    }

    .gl-header {
        --gl-header-h: 60px;
        height: var(--gl-header-h);
        padding: 0;
    }

    .gl-header__inner {
        position: relative;
    }

    .gl-header__icon {
        height: 32px;
    }

    .gl-header__wordmark {
        height: 28px;
    }

    .gl-header__logo {
        gap: 0.5rem;
        min-width: 0;
    }

    .gl-header__nav-toggle {
        display: inline-flex;
    }

    .gl-header__nav {
        display: none;
        position: absolute;
        top: var(--gl-header-h);
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1rem 1rem;
        background: var(--gl-navy-mid);
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 8px 24px rgba(0,0,0,.35);
        z-index: 200;
    }

    .gl-header__nav.gl-header__nav--open {
        display: flex;
    }

    .gl-header__nav-label {
        display: none;
    }

    .gl-header__nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.75rem 0.5rem;
        font-size: 0.9375rem;
        color: rgba(255,255,255,.78);
        white-space: normal;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .gl-header__nav-link:last-child {
        border-bottom: none;
    }

    .gl-header__nav-link--membership {
        justify-content: center;
        margin-bottom: 0.5rem;
        border-bottom: none;
    }

    .gl-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .gl-footer__copy {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gl-panel { padding: 2rem 1.25rem; }
    .gl-form-card { padding: 1.75rem 1.25rem; }
    .gl-footer__inner { flex-direction: column; align-items: flex-start; }
    .gl-header__nav-label { display: none; }
}

/* Header membership link */
.gl-header__nav-link--membership {
    background: #2d6b5e;
    color: #ffffff !important;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.18);
}

.gl-header__nav-link--membership:hover {
    background: #255c50;
    color: #ffffff !important;
    text-decoration: none;
}




.gl-left-cta {
    margin-top: 1.75rem;
}

.gl-left-cta .gl-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2d6b5e;
    color: #ffffff;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.18);
}

.gl-left-cta .gl-link:hover {
    background: #255c50;
    color: #ffffff;
    text-decoration: none;
}

.gl-os-badge a {
    display: inline-flex;
    align-items: center;

}