/* =============================================================
   BOCC – account.css
   Styles for auth pages: Sign Up, Sign In.
   Shared utilities (CSS vars, fonts, page-container) live in site.css.
   ============================================================= */

/* ── Layout ─────────────────────────────────────────────────── */
/* Escape page-main's horizontal padding so the two panels reach
   the edges of the 1280px container. */
.auth-layout {
    margin-left:  calc(-1 * var(--bocc-page-x));
    margin-right: calc(-1 * var(--bocc-page-x));
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 130px); /* viewport minus nav + announcement bar */
}

/* ── Brand panel (left) ─────────────────────────────────────── */
.auth-brand {
    background: var(--bocc-navy);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-brand__pattern {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, #0a1574 0 14px, #0c1a86 14px 28px);
    opacity: .4;
    pointer-events: none;
}
.auth-brand__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: auto;
}
.auth-brand__logo img {
    height: 38px;
    width: auto;
    display: block;
}
.auth-brand__body {
    margin: auto 0;
}
.auth-brand__eyebrow {
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .2em;
    color: var(--bocc-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.auth-brand__title {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 20px;
}
.auth-brand__perks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}
.auth-brand__perk {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.auth-brand__perk-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bocc-gold);
    color: var(--bocc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}
.auth-brand__perk-text {
    font-size: 15px;
    color: #C7CEE6;
    line-height: 1.5;
}
.auth-brand__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #B9C2DE;
    font-size: 13.5px;
    padding-top: 40px;
}
.auth-brand__stars {
    display: flex;
    gap: 3px;
    color: var(--bocc-gold);
    font-size: 15px;
    letter-spacing: 2px;
}

/* ── Form panel (right) ─────────────────────────────────────── */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    overflow-y: auto;
    background: #fff;
}
.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

/* "Already have an account?" bar */
.auth-form-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 32px;
    font-size: 13.5px;
    color: var(--bocc-text-muted);
}
.auth-form-topbar a {
    color: var(--bocc-navy);
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.auth-form-topbar a:hover { color: var(--bocc-gold); }

.auth-form__title {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -.02em;
    color: var(--bocc-navy);
    margin-bottom: 8px;
}
.auth-form__subtitle {
    font-size: 14.5px;
    color: var(--bocc-text-muted);
    margin-bottom: 30px;
}

/* ── Social auth buttons ────────────────────────────────────── */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--bocc-border);
    border-radius: 8px;
    padding: 13px;
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--bocc-text-dark);
    cursor: pointer;
    transition: border-color .15s ease;
}
.auth-social-btn:hover { border-color: var(--bocc-navy); }
.auth-social-btn__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Divider ────────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.auth-divider__line {
    flex: 1;
    height: 1px;
    background: var(--bocc-border);
}
.auth-divider__text {
    font-size: 12.5px;
    color: #9AA6C2;
    white-space: nowrap;
}

/* ── Form fields ────────────────────────────────────────────── */
.auth-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.auth-field {
    margin-bottom: 16px;
}
.auth-label {
    display: block;
    font-family: var(--bocc-font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--bocc-text-dark);
    margin-bottom: 7px;
}
.auth-input {
    width: 100%;
    border: 1px solid var(--bocc-border);
    border-radius: 8px;
    padding: 13px 15px;
    font-family: var(--bocc-font-body);
    font-size: 14.5px;
    color: var(--bocc-text-dark);
    background: #fff;
    outline: none;
    transition: border-color .15s ease;
}
.auth-input:focus       { border-color: var(--bocc-navy); }
.auth-input::placeholder { color: #9AA6C2; }

/* Password wrapper */
.auth-input-wrap { position: relative; }
.auth-input--pw  { padding-right: 60px; }
.auth-pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 12px;
    color: var(--bocc-text-muted);
    padding: 8px;
}
.auth-pw-toggle:hover { color: var(--bocc-navy); }

/* ── Password strength ──────────────────────────────────────── */
.auth-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-strength__bars {
    flex: 1;
    display: flex;
    gap: 5px;
}
.auth-strength__bar {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: #EEF1F7;
    transition: background .2s ease;
}
.auth-strength__label {
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 12px;
    color: #9AA6C2;
    min-width: 54px;
    text-align: right;
    transition: color .2s ease;
}

/* ── Terms checkbox ─────────────────────────────────────────── */
.auth-check-label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 24px;
    cursor: pointer;
    font-size: 13px;
    color: var(--bocc-text-muted);
    line-height: 1.5;
}
/* Hide native checkbox, style a custom box instead */
.auth-check-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.auth-check-box {
    width: 19px;
    height: 19px;
    border: 1.5px solid var(--bocc-border);
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: background .15s, border-color .15s;
}
.auth-check-label input[type="checkbox"]:checked ~ .auth-check-box {
    background: var(--bocc-navy);
    border-color: var(--bocc-navy);
}
.auth-check-label input[type="checkbox"]:checked ~ .auth-check-box::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.auth-check-label a {
    color: var(--bocc-navy);
    font-weight: 600;
    text-decoration: none;
}
.auth-check-label a:hover { text-decoration: underline; }

/* ── Submit button ──────────────────────────────────────────── */
.auth-submit {
    display: block;
    text-align: center;
    width: 100%;
    background: var(--bocc-navy);
    color: #fff;
    border: none;
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background .15s ease;
    text-decoration: none;
}
.auth-submit:hover { background: #0A1880; color: #fff; }

/* ── Select ─────────────────────────────────────────────────── */
/* select shares auth-input styles; these patch the appearance */
.auth-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}
.auth-select:focus { border-color: var(--bocc-navy); }

/* ── Locality + postcode row ────────────────────────────────── */
.auth-locality-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 14px;
}

/* ── Form section titles ────────────────────────────────────── */
.auth-section-title {
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--bocc-text-muted);
    margin: 24px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bocc-border);
}
.auth-section-title:first-of-type { margin-top: 0; }

/* ── Validation messages ────────────────────────────────────── */
.auth-validation {
    display: block;
    font-size: 12px;
    color: var(--bocc-red);
    margin-top: 5px;
}

/* ── Alert box (model-level errors) ────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 13px 16px;
    margin-bottom: 20px;
}
.auth-alert__icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bocc-red);
    color: #fff;
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-alert__text { font-size: 13.5px; color: #991B1B; }
.auth-alert__text ul { margin: 0; padding-left: 16px; }

/* ── Secondary checkbox (optional / marketing) ──────────────── */
.auth-check-label--secondary { opacity: .85; }
.auth-check-label--secondary .auth-check-box {
    border-color: #C5CEDF;
}

/* ── Form panel: top-align when form is long ────────────────── */
.auth-form-panel { align-items: flex-start; }

/* ── Security note ──────────────────────────────────────────── */
.auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--bocc-text-muted);
}
.auth-secure__dot {
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--bocc-green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Responsive: Tablet (≤ 1023px) ─────────────────────────── */
@media (max-width: 1023px) {
    .auth-brand { padding: 40px 40px; }
    .auth-brand__title { font-size: 30px; }
}

/* ── Responsive: Mobile (≤ 767px) ──────────────────────────── */
@media (max-width: 767px) {
    .auth-layout {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .auth-brand { display: none; } /* brand panel hidden on mobile */
    .auth-form-panel {
        padding: 40px 20px;
        align-items: flex-start;
        padding-top: 48px;
    }
    .auth-name-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .auth-name-grid > div:first-child { margin-bottom: 16px; }
    .auth-locality-row { grid-template-columns: 1fr; }
}


/* =============================================================
   ACCOUNT SETTINGS PAGE  (Account.cshtml + partials)
   All classes prefixed with ac-
   ============================================================= */

/* ── Breadcrumb ───────────────────────────────────────────────── */
.ac-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7A99;
    margin-bottom: 22px;
}
.ac-breadcrumb a {
    text-decoration: none;
    color: #6B7A99;
    transition: color .15s;
}
.ac-breadcrumb a:hover { color: var(--bocc-navy); }
.ac-breadcrumb span:last-child { color: #0A0E2A; font-weight: 500; }

/* ── Greeting bar ─────────────────────────────────────────────── */
.ac-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.ac-greeting__left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.ac-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bocc-navy);
    color: var(--bocc-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
    letter-spacing: 0;
}
.ac-greeting__name {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -.02em;
    color: var(--bocc-navy);
    margin: 0;
}
.ac-greeting__sub {
    font-size: 14px;
    color: #6B7A99;
    margin-top: 3px;
}
.ac-signout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid var(--bocc-border);
    color: #0A0E2A;
    text-decoration: none;
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 20px;
    border-radius: 8px;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}
.ac-signout:hover { border-color: var(--bocc-navy); color: var(--bocc-navy); }

/* ── Page layout ──────────────────────────────────────────────── */
.ac-layout {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 84px;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.ac-sidebar {
    background: #fff;
    border: 1px solid var(--bocc-border);
    border-radius: 12px;
    padding: 14px;
    position: sticky;
    top: 96px;
}
.ac-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    margin-bottom: 2px;
    font-family: var(--bocc-font-heading);
    font-weight: 600;
    font-size: 14px;
    color: #3a4366;
    transition: background .15s, color .15s;
}
.ac-nav-item:hover        { background: #F4F6FE; color: var(--bocc-navy); }
.ac-nav-item.active       { background: #F4F6FE; color: var(--bocc-navy); font-weight: 700; }
.ac-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--bocc-border);
    flex-shrink: 0;
    transform: rotate(45deg);
    transition: background .15s;
}
.ac-nav-item.active .ac-nav-dot,
.ac-nav-item:hover  .ac-nav-dot { background: var(--bocc-gold); }

/* ── Stat cards ───────────────────────────────────────────────── */
.ac-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.ac-stat-card {
    background: #fff;
    border: 1px solid var(--bocc-border);
    border-radius: 12px;
    padding: 24px;
}
.ac-stat-card__label {
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6B7A99;
    margin-bottom: 12px;
}
.ac-stat-card__value {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 30px;
    color: var(--bocc-navy);
    line-height: 1;
}
.ac-stat-card__note {
    font-size: 13px;
    color: #6B7A99;
    margin-top: 6px;
}

/* ── Generic content card ─────────────────────────────────────── */
.ac-card {
    background: #fff;
    border: 1px solid var(--bocc-border);
    border-radius: 12px;
    overflow: hidden;
}
.ac-card + .ac-card { margin-top: 20px; }

.ac-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid #EEF1F7;
}
.ac-card__title {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 17px;
    color: var(--bocc-navy);
}
.ac-link-btn {
    background: none;
    border: none;
    color: var(--bocc-navy);
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    border-bottom: 2px solid var(--bocc-gold);
    padding-bottom: 2px;
    text-decoration: none;
    transition: color .15s;
    line-height: 1;
}
.ac-link-btn:hover { color: var(--bocc-gold); }

/* ── Order rows ───────────────────────────────────────────────── */
.ac-order-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 26px;
    border-bottom: 1px solid #F0F3F9;
}
.ac-order-row:last-child { border-bottom: none; }
.ac-order-id   { font-family: var(--bocc-font-heading); font-weight: 700; font-size: 14px; color: #0A0E2A; }
.ac-order-date { font-size: 12.5px; color: #6B7A99; margin-top: 2px; }
.ac-order-items { font-size: 13.5px; color: #3a4366; }
.ac-order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-family: var(--bocc-font-heading);
    font-weight: 600;
}
.ac-order-status__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ac-order-actions { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.ac-order-total {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 15px;
    color: var(--bocc-navy);
}
.ac-order-detail-link {
    color: var(--bocc-navy);
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}
.ac-order-detail-link:hover { color: var(--bocc-gold); }

/* ── Empty state ──────────────────────────────────────────────── */
.ac-empty {
    padding: 40px 26px;
    text-align: center;
    color: #6B7A99;
    font-size: 14px;
}
.ac-empty a {
    color: var(--bocc-navy);
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--bocc-gold);
    padding-bottom: 1px;
}

/* ── Info card body (contact / address display) ───────────────── */
.ac-info-body {
    padding: 22px 26px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.ac-info-body__label {
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 13px;
    color: #0A0E2A;
    margin-bottom: 8px;
}
.ac-info-body__text {
    font-size: 14.5px;
    color: #3a4366;
    line-height: 1.7;
}
.ac-info-body__edit {
    color: var(--bocc-navy);
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 2px solid var(--bocc-gold);
    padding-bottom: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s;
}
.ac-info-body__edit:hover { color: var(--bocc-gold); }


/* ── Order detail rows ────────────────────────────────────────── */
.ac-detail-date {
    font-size: 13px;
    color: #6B7A99;
    margin-left: 12px;
    font-weight: 400;
}

.ac-detail-row {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 26px;
    border-bottom: 1px solid #F0F3F9;
}

    .ac-detail-row:last-of-type {
        border-bottom: none;
    }

.ac-detail-row__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bocc-border);
    display: block;
    background: repeating-linear-gradient(135deg, #f4f6fb 0 8px, #fafbfe 8px 16px);
}

.ac-detail-row__name {
    font-family: var(--bocc-font-heading);
    font-weight: 600;
    font-size: 14px;
    color: #0A0E2A;
    margin-bottom: 4px;
}

.ac-detail-row__code {
    font-size: 12px;
    color: #9AA6C2;
    font-family: var(--bocc-font-heading);
    font-weight: 600;
    letter-spacing: .04em;
}

.ac-detail-row__qty {
    font-family: var(--bocc-font-heading);
    font-weight: 600;
    font-size: 14px;
    color: #6B7A99;
    white-space: nowrap;
}

.ac-detail-row__line-total {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 15px;
    color: var(--bocc-navy);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.ac-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: #F8F9FC;
    border-top: 1px solid #EEF1F7;
}

.ac-detail-footer__label {
    font-family: var(--bocc-font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #6B7A99;
}

.ac-detail-footer__total {
    font-family: var(--bocc-font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--bocc-navy);
}

/* ── Account settings: responsive ────────────────────────────── */
@media (max-width: 1023px) {
    .ac-layout { grid-template-columns: 200px 1fr; gap: 24px; }
    .ac-greeting__name { font-size: 22px; }
    .ac-stats { grid-template-columns: 1fr 1fr; }
    .ac-order-row { grid-template-columns: 1.1fr 1fr auto; }
    .ac-order-items { display: none; }
}
@media (max-width: 767px) {
    .ac-layout { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
    .ac-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
        border-radius: 10px;
    }
    .ac-nav-item { width: auto; flex: 0 0 auto; margin-bottom: 0; font-size: 13px; padding: 9px 14px; }
    .ac-nav-dot  { display: none; }
    .ac-greeting__name { font-size: 20px; }
    .ac-avatar { width: 48px; height: 48px; font-size: 17px; }
    .ac-stats { grid-template-columns: 1fr; gap: 12px; }
    .ac-order-row { grid-template-columns: 1fr auto; }
    .ac-order-status { display: none; }
}
