/* ============================================================
   Botanical Skincare — brand overrides
   Loaded after the default scaffold css (milligram + cake.css).
   Only adds the brand color palette + shell tweaks; content
   styles keep coming from the default scaffold css.
   ============================================================ */

/* ---------- Botanical green palette (overrides cake.css defaults) ---------- */
:root {
    --color-cakephp-red: #31584B;
    --color-cakephp-blue: #4F7568;
    --color-cakephp-lightblue: #6A9486;
    --color-main-bg: #E6E5DF;
    --color-links-active: #31584B;
    --color-headings: #243A33;
}

/* ---------- brand type: one voice for the whole site ---------- */
/* cake.css renders headings in the Raleway webfont and leaves body copy to the
   browser default, so the catalogue, cart and auth pages looked like a
   different brand than the landing page (Georgia serif + Arial).
   brand.css loads after cake.css and before the page stylesheets, so the
   landing page voice is applied site-wide here while pages stay able to
   override it. */
h1,
h2,
h3,
h4,
h5,
h6,
legend {
    font-family: Georgia, 'Times New Roman', serif;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* ---------- one visible focus treatment for keyboard users ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #31584B;
    outline-offset: 3px;
}

/* ---------- skip link: jump past the navigation ---------- */
.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fffdf4;
    color: #173f35;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- brand layout shell ---------- */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1 0 auto;
}

.page-footer {
    flex-shrink: 0;
    border-radius: 0;
}

/* ---------- shared brand navbar: keep the landing page look ---------- */
.navbar {
    font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    color: #212529;
    box-shadow: 0 0.25rem 1rem rgba(23, 63, 53, 0.06);
    padding-top: 10px;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar > .container-fluid {
    padding-right: 27px;
    padding-left: 12px;
}

.navbar .navbar-brand {
    font-size: 22px;
    color: #000;
    font-weight: 400;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.65);
    font-size: 19px;
    font-weight: 500;
    padding-right: 10px !important;
    padding-left: 10px !important;
}

.navbar .navbar-nav .nav-link--with-badge {
    display: inline-block;
    position: relative;
}

.nav-count-badge {
    align-items: center;
    background: #d93434;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.58em;
    font-weight: 700;
    height: 1.35em;
    justify-content: center;
    line-height: 1;
    min-width: 1.35em;
    padding: 0 0.35em;
    position: absolute;
    right: -0.45em;
    top: -0.35em;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: rgba(0, 0, 0, 0.8);
}

.navbar .navbar-toggler {
    font-size: 20px;
    font-weight: 400;
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.65);
    padding-top: 4px;
    padding-bottom: 4px;
}

.navbar .navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ---------- gentle content tweaks (overrides of default scaffold styles) ---------- */
.content table thead th {
    background: #f4f3ee;
}

.content table tbody tr:hover {
    background: #f7f8f5;
}

.side-nav .side-nav-item:hover {
    background: #eef2ee;
}

/* ---------- auth page button variants: green instead of milligram purple ---------- */
.button.button-outline,
.button.button-clear {
    color: #4F7568;
    border-color: #4F7568;
}

.button.button-outline:hover,
.button.button-outline:focus {
    background: #4F7568;
    color: #fff;
}

.button.button-clear:hover,
.button.button-clear:focus {
    background: #E6E5DF;
    color: #31584B;
}

/* ---------- brand auth login card (layout/login.php) ---------- */
.brand-auth {
    background:
        radial-gradient(circle at 12% 18%, rgba(185, 133, 45, 0.14), transparent 28rem),
        linear-gradient(135deg, #f8f5ed 0%, #e6e5df 55%, #dfe6dc 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.brand-auth .auth-brand {
    margin: 0;
    padding: clamp(1.6rem, 4vw, 3rem) clamp(1.4rem, 4vw, 4rem) 0;
}

.brand-auth .auth-wordmark {
    color: #17342e;
    display: inline-block;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    text-decoration: none;
}

.brand-auth .auth-wordmark:hover,
.brand-auth .auth-wordmark:focus {
    text-decoration: none;
}

.brand-auth .auth-wordmark > span {
    display: block;
    font: clamp(2.8rem, 4.2vw, 4.2rem)/0.95 Georgia, 'Times New Roman', serif;
    letter-spacing: -2px;
}

.brand-auth .auth-wordmark small {
    /* Deep gold: 5.2:1 on the auth background (the previous #b9852d was 2.6:1). */
    color: #7d5410;
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    margin-top: 0.65rem;
    padding-left: 0.15rem;
}

.brand-auth .auth-main {
    width: 100%;
    padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.4rem, 4vw, 4rem) clamp(2rem, 5vw, 4rem);
}

.container.login {
    max-width: 1120px;
    margin: 0 auto;
}

.container.login .row {
    display: block;
}

.container.login .row > .column,
.container.login .column,
.container.login .column-50,
.container.login .column-offset-25 {
    flex: none;
    width: 100%;
    max-width: none;
    margin-left: 0;
}

fieldset {
    border: 0;
    margin: 0 0 0.5rem;
    padding: 0;
}

fieldset legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-cakephp-red, #31584B);
    width: 100%;
    margin-bottom: 1rem;
}

.auth-login__shell {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(38rem, 1fr);
    min-height: min(68rem, calc(100vh - 12rem));
}

.auth-login__story,
.auth-login__panel {
    border: 1px solid rgba(203, 189, 159, 0.72);
}

.auth-login__story {
    background:
        linear-gradient(180deg, rgba(23, 52, 46, 0.66), rgba(23, 52, 46, 0.86)),
        url('../img/landing_page_hero_skincare_products.jpg') center/cover;
    border-radius: 8px 0 0 8px;
    color: #fffdf7;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 42rem;
    padding: clamp(2rem, 5vw, 4rem);
}

.auth-login__story h1 {
    color: inherit;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(4rem, 7vw, 7.2rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.95;
    margin: 0 0 1.4rem;
}

.auth-login__story p {
    color: rgba(255, 253, 247, 0.86);
    font-size: 1.35rem;
    line-height: 1.7;
    margin: 0;
    max-width: 44rem;
}

.auth-login__eyebrow {
    /* Deep gold: 5.6:1 on the panel background (the previous #b9852d was 3.2:1). */
    color: #7d5410;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.auth-login__story .auth-login__eyebrow {
    color: #f2d195;
}

.auth-login__panel {
    background: rgba(255, 253, 247, 0.94);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2.4rem 6rem rgba(23, 52, 46, 0.14);
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 5rem);
}

.auth-login__panel .users.form.content {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.auth-login__panel-heading {
    border-bottom: 1px solid #ded7c7;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.auth-login__panel-heading h2 {
    color: #17342e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.auth-login legend {
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.auth-login label {
    color: #53655e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.auth-login input[type="email"],
.auth-login input[type="password"] {
    background: #fffdf7;
    border: 1px solid #ded7c7;
    border-radius: 8px;
    color: #17342e;
    font: 1.45rem/1.5 Arial, Helvetica, sans-serif;
    height: 5rem;
    margin-bottom: 1.3rem;
    padding: 0 1.2rem;
}

.auth-login input[type="email"]:focus,
.auth-login input[type="password"]:focus {
    border-color: #155446;
    box-shadow: 0 0 0 3px rgba(21, 84, 70, 0.12);
    outline: none;
}

.auth-login__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 42rem;
}

.auth-login__submit,
.auth-login__secondary,
.auth-login__home {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.08em;
    height: 5.2rem;
    margin: 0;
    padding: 0 1.8rem;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;
}

.auth-login__submit {
    background: #155446;
    border: 1px solid #155446;
    color: #fffdf7;
}

.auth-login__submit:hover,
.auth-login__submit:focus {
    background: #0f3d34;
    border-color: #0f3d34;
    color: #fffdf7;
}

.auth-login__secondary,
.auth-login__home {
    background: transparent;
    border: 1px solid #6f8a7f;
    color: #31584b;
}

.auth-login__secondary:hover,
.auth-login__secondary:focus,
.auth-login__home:hover,
.auth-login__home:focus {
    background: #eef2ec;
    color: #17342e;
}

.auth-login__footer {
    border-top: 1px solid #ded7c7;
    margin-top: 3rem;
    padding-top: 1.6rem;
}

@media (max-width: 860px) {
    .brand-auth .auth-brand {
        padding: 1.5rem 1.4rem 0;
    }

    .brand-auth .auth-main {
        padding-top: 2rem;
    }

    .auth-login__shell {
        grid-template-columns: 1fr;
    }

    .auth-login__story {
        border-radius: 8px 8px 0 0;
        min-height: 28rem;
    }

    .auth-login__panel {
        border-left: 1px solid rgba(203, 189, 159, 0.72);
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 560px) {
    .auth-login__actions {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .auth-login__submit,
    .auth-login__secondary,
    .auth-login__home {
        width: 100%;
    }
}

/* ============================================================
