﻿/* =====================================================================
   Hishabee — account / sign-in pages
   Same identity as the public home page ("Ledger & Jade"):
   pine-ink ground, porcelain paper, brass accent, jade for positives.
   Loaded AFTER _Layout.css, and every override is prefixed body.hb-auth
   so it outranks the inherited metronic ".login .content ..." rules.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;450;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

body.hb-auth {
    --hb-ink: #122421;
    --hb-ink-2: #1b332e;
    --hb-porcelain: #f5f4ef;
    --hb-card: #ffffff;
    --hb-brass: #be9d5a;
    --hb-brass-deep: #a8853f;
    --hb-jade: #1f8a63;
    --hb-brick: #c04f30;
    --hb-line: #e8e6dc;
    --hb-muted: #7a8580;
    --hb-muted-ink: #9db1a8;
    --hb-text: #1a2a26;
    --hb-display: 'Fraunces', Georgia, serif;
    --hb-body: 'Inter', 'Open Sans', sans-serif;
    --hb-mono: 'IBM Plex Mono', Consolas, monospace;

    background: var(--hb-porcelain) !important;
    font-family: var(--hb-body);
    color: var(--hb-text);
    margin: 0;
}

    body.hb-auth *,
    body.hb-auth *::before,
    body.hb-auth *::after { box-sizing: border-box; }

    /* metronic leftovers we don't use on this shell */
    body.hb-auth > .menu-toggler,
    body.hb-auth > .logo { display: none; }

/* ---------- shell ---------- */
.hb-auth-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ===================== LEFT: brand panel ===================== */
.hb-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 54px 56px 40px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(900px 520px at 85% -10%, rgba(190,157,90,0.16), transparent 60%),
                linear-gradient(160deg, var(--hb-ink) 0%, var(--hb-ink-2) 72%, #17352d 100%);
    color: #fff;
}

.hb-auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--hb-mono);
    font-size: 11.5px;
    letter-spacing: 0.17em;
    color: var(--hb-brass);
    margin: 0 0 40px;
}

.hb-auth-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex: none;
    background: linear-gradient(145deg, var(--hb-brass), var(--hb-brass-deep));
    color: var(--hb-ink);
    font-family: var(--hb-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
}

.hb-auth-head {
    font-family: var(--hb-display);
    font-weight: 600;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    color: #fff;
    max-width: 15em;
}

.hb-auth-sub {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px;
    max-width: 30em;
}

.hb-auth-points {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
}

    .hb-auth-points li {
        position: relative;
        padding: 7px 0 7px 26px;
        font-size: 14.5px;
        color: rgba(255, 255, 255, 0.9);
    }

        .hb-auth-points li::before {
            content: "";
            position: absolute;
            left: 2px;
            top: 14px;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--hb-brass);
            box-shadow: 0 0 0 4px rgba(190, 157, 90, 0.2);
        }

/* small live-figures proof block */
.hb-auth-proof {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    max-width: 460px;
}

.hb-auth-proof-row {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.hb-auth-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .hb-auth-stat span {
        font-size: 10.5px;
        letter-spacing: 0.05em;
        color: var(--hb-muted-ink);
    }

    .hb-auth-stat b {
        font-family: var(--hb-display);
        font-size: 20px;
        font-weight: 600;
        color: #fff;
        line-height: 1.1;
    }

        .hb-auth-stat b em {
            font-style: normal;
            font-size: 13px;
            color: var(--hb-brass);
            vertical-align: 2px;
        }

.hb-auth-ai {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.82);
}

    .hb-auth-ai i {
        font-style: normal;
        color: var(--hb-brass);
        font-size: 13px;
    }

/* brand-panel footer: languages + credit */
.hb-auth-brand-foot {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

body.hb-auth .language-switch-area {
    padding: 0;
    text-align: left;
}

    body.hb-auth .language-switch-area a {
        display: inline-block;
        margin-right: 8px;
    }

    body.hb-auth .language-switch-area .language-icon {
        opacity: 0.45;
        transition: opacity .2s ease;
    }

    body.hb-auth .language-switch-area a:hover .language-icon,
    body.hb-auth .language-switch-area .language-icon-current {
        opacity: 1;
    }

.hb-auth-credit {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

    .hb-auth-credit a {
        color: var(--hb-brass);
        font-weight: 600;
        text-decoration: none;
    }

        .hb-auth-credit a:hover { color: #d8bc7e; text-decoration: underline; }

/* ===================== RIGHT: form panel ===================== */
.hb-auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 40px;
    background: var(--hb-porcelain);
}

/* logo inside the sign-in card (light artwork / tenant logo) */
.hb-auth-cardlogo {
    display: flex;
    justify-content: center;
    margin: 0 0 22px;
    line-height: 0;
}

    .hb-auth-cardlogo img {
        width: auto;
        height: auto;
        max-width: 190px;
        max-height: 38px;
    }

    .hb-auth-cardlogo:focus-visible {
        outline: 3px solid rgba(190, 157, 90, 0.65);
        outline-offset: 4px;
    }

/* the card — neutralises .login .content entirely */
body.hb-auth .content {
    background: var(--hb-card);
    border: 1px solid var(--hb-line);
    border-radius: 18px;
    width: 100%;
    max-width: 430px;
    margin: 0;
    padding: 34px 34px 30px;
    overflow: visible;
    box-shadow: 0 1px 2px rgba(18,36,33,.05), 0 26px 60px -30px rgba(18,36,33,.4);
}

/* headings */
body.hb-auth .content h3,
body.hb-auth .content .form-title {
    font-family: var(--hb-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--hb-ink);
    text-align: left;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

body.hb-auth .content h4 {
    font-family: var(--hb-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--hb-text);
}

.hb-auth-card-sub {
    font-size: 13.5px;
    color: var(--hb-muted);
    margin: 0 0 24px;
}

body.hb-auth .content .hint {
    color: var(--hb-muted);
    font-size: 13.5px;
    margin: 14px 0 8px;
}

/* ---------- fields ---------- */
body.hb-auth .content .form-group { margin-bottom: 16px; }

body.hb-auth .hb-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hb-text);
    letter-spacing: 0.02em;
    margin-bottom: 7px;
}

body.hb-auth .hb-field {
    position: relative;
    display: block;
}

    body.hb-auth .hb-field > .fa {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: var(--hb-muted);
        pointer-events: none;
    }

body.hb-auth .content .form-control {
    height: 48px;
    background: #fbfaf7;
    border: 1px solid var(--hb-line);
    border-radius: 11px;
    color: var(--hb-text);
    font-family: var(--hb-body);
    font-size: 14.5px;
    padding: 0 15px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.hb-auth .content .hb-field > .fa ~ .form-control { padding-left: 42px; }

body.hb-auth .content .form-control:focus,
body.hb-auth .content .form-control:active {
    background: var(--hb-card);
    border-color: var(--hb-brass);
    box-shadow: 0 0 0 3px rgba(190, 157, 90, 0.16);
    outline: none;
}

body.hb-auth .content .form-control::placeholder { color: #a3ada8; }

body.hb-auth .content select.form-control { padding: 0 12px; }

/* jQuery-validation feedback */
body.hb-auth .content .form-control.error {
    border-color: rgba(192, 79, 48, 0.7);
    background: rgba(192, 79, 48, 0.04);
}

    body.hb-auth .content .form-control.error:focus {
        box-shadow: 0 0 0 3px rgba(192, 79, 48, 0.15);
    }

body.hb-auth .content label.error {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--hb-brick);
}

/* The non-multi-tenancy branch renders a visibility:hidden tenancy input as a
   direct child of the form; keep it submittable but stop it reserving 48px. */
body.hb-auth .content .login-form > .form-control {
    position: absolute;
    height: 0;
    padding: 0;
    border: 0;
    margin: 0;
}

/* ---------- actions ---------- */
body.hb-auth .content .form-actions {
    clear: both;
    border: 0;
    padding: 0;
    margin: 22px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.hb-auth .content .form-actions .btn,
body.hb-auth .content .btn-success,
body.hb-auth .content .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 22px !important;
    border: none;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--hb-brass), var(--hb-brass-deep));
    color: var(--hb-ink);
    font-family: var(--hb-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: 0 10px 26px -12px rgba(190, 157, 90, 0.85);
    transition: transform .18s ease, box-shadow .18s ease;
}

    body.hb-auth .content .form-actions .btn:hover,
    body.hb-auth .content .btn-success:hover,
    body.hb-auth .content .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px -12px rgba(190, 157, 90, 1);
        color: var(--hb-ink);
    }

    body.hb-auth .content .btn:focus-visible {
        outline: 3px solid rgba(190, 157, 90, 0.7);
        outline-offset: 2px;
    }

/* secondary buttons stay quiet */
body.hb-auth .content .btn-default {
    background: var(--hb-card) !important;
    border: 1px solid var(--hb-line) !important;
    color: var(--hb-text) !important;
    box-shadow: none;
    font-weight: 600;
}

    body.hb-auth .content .btn-default:hover {
        border-color: var(--hb-brass) !important;
        background: #fbfaf7 !important;
    }

/* remember-me row */
body.hb-auth .content .rememberme,
body.hb-auth .content .check {
    color: var(--hb-muted);
    font-size: 13.5px;
    font-weight: 450;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    body.hb-auth .content .rememberme input[type=checkbox] { margin: 0; }

.hb-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.hb-auth .content .forget-password {
    float: none;
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hb-brass-deep);
    text-decoration: none;
}

    body.hb-auth .content .forget-password:hover { color: var(--hb-ink); text-decoration: underline; }

/* ---------- alerts ---------- */
body.hb-auth .content .alert {
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13.5px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

body.hb-auth .content .alert-danger {
    background: rgba(192, 79, 48, 0.08);
    border-color: rgba(192, 79, 48, 0.25);
    color: #8f3a22;
}

body.hb-auth .content .alert-success {
    background: rgba(31, 138, 99, 0.08);
    border-color: rgba(31, 138, 99, 0.25);
    color: #14664a;
}

/* ---------- external providers ---------- */
body.hb-auth .login-options {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--hb-line);
    overflow: hidden;
}

    body.hb-auth .login-options h4 {
        float: none;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--hb-muted) !important;
        margin: 0 0 12px;
    }

    body.hb-auth .login-options .social-icons {
        float: none;
        padding: 0;
        margin: 0;
    }

/* ---------- card footer strip ---------- */
body.hb-auth .content .create-account {
    margin: 26px -34px -30px;
    padding: 15px 34px;
    text-align: center;
    background: var(--hb-porcelain);
    border-top: 1px solid var(--hb-line);
    border-radius: 0 0 18px 18px;
}

    body.hb-auth .content .create-account p { margin: 0; }

    body.hb-auth .content .create-account a,
    body.hb-auth .content .create-account p a {
        display: inline-block;
        margin: 0;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--hb-muted);
        text-transform: none;
        text-decoration: none;
    }

        body.hb-auth .content .create-account a:hover { color: var(--hb-brass-deep); }

    body.hb-auth .content .create-account .pipe-divider { color: var(--hb-line); }

/* ---------- panel footer: help + copyright ---------- */
/* Declared before the media query that switches it on, so the mobile rule wins. */
.hb-auth-langs-mobile { display: none; }

.hb-auth-help {
    margin: 22px 0 0;
    font-size: 13.5px;
    color: var(--hb-muted);
    text-align: center;
}

    .hb-auth-help a {
        color: var(--hb-brass-deep);
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

        .hb-auth-help a:hover { text-decoration: underline; }

    .hb-auth-help .fa { margin-right: 5px; }

body.hb-auth .copyright {
    text-align: center;
    margin: 14px 0 0;
    padding: 0;
    color: var(--hb-muted);
    font-size: 12px;
}

/* =====================================================================
   RTL
   ===================================================================== */
[dir="rtl"] body.hb-auth .content h3,
[dir="rtl"] body.hb-auth .content .form-title { text-align: right; }

[dir="rtl"] body.hb-auth .hb-field > .fa { left: auto; right: 15px; }

[dir="rtl"] body.hb-auth .content .hb-field > .fa ~ .form-control {
    padding-left: 15px;
    padding-right: 42px;
}

[dir="rtl"] body.hb-auth .language-switch-area { text-align: right; }

[dir="rtl"] body.hb-auth .language-switch-area a { margin-right: 0; margin-left: 8px; }

[dir="rtl"] .hb-auth-points li { padding: 7px 26px 7px 0; }

    [dir="rtl"] .hb-auth-points li::before { left: auto; right: 2px; }

[dir="rtl"] .hb-auth-help .fa { margin-right: 0; margin-left: 5px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
    /* Signing in is the job of this page, so on a phone the brand panel
       collapses to a slim banner and the form sits within first-screen reach.
       The supporting detail (points, figures, language row) lives on the
       desktop layout where there is room for it. */
    .hb-auth-wrap { grid-template-columns: 1fr; min-height: 0; }

    .hb-auth-brand { padding: 22px 22px 20px; }

    .hb-auth-eyebrow { margin-bottom: 12px; font-size: 10px; }

    .hb-auth-mark { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }

    .hb-auth-cardlogo { margin-bottom: 18px; }

        .hb-auth-cardlogo img { max-width: 160px; max-height: 34px; }

    .hb-auth-head {
        font-size: 21px;
        line-height: 1.2;
        margin-bottom: 0;
        max-width: none;
    }

    .hb-auth-sub,
    .hb-auth-points,
    .hb-auth-proof { display: none; }

    .hb-auth-brand-foot { display: none; }

    .hb-auth-panel { padding: 26px 20px 34px; }

    /* language switcher moves under the card so it is still reachable */
    .hb-auth-langs-mobile { display: block; margin-top: 18px; text-align: center; }

        .hb-auth-langs-mobile .language-switch-area { text-align: center; }

        .hb-auth-langs-mobile .language-icon { opacity: 0.55; }

        .hb-auth-langs-mobile .language-icon-current { opacity: 1; }
}

@media (max-width: 480px) {
    body.hb-auth .content {
        max-width: 100%;
        padding: 26px 20px 24px;
        border-radius: 15px;
    }

        body.hb-auth .content .create-account {
            margin: 22px -20px -24px;
            padding: 14px 20px;
            border-radius: 0 0 15px 15px;
        }

    body.hb-auth .content h3,
    body.hb-auth .content .form-title { font-size: 22px; }

    .hb-auth-logo img { max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    body.hb-auth * { transition: none !important; }
}
