/* ==========================================================================
   HostingPur client-area theme
   Loaded after Bootstrap (vendor.css) and Huraga, so these rules win.
   Design tokens are exposed as --hp-* variables for quick rebranding.
   ========================================================================== */

:root {
    --hp-primary: #4f46e5;
    --hp-primary-600: #4338ca;
    --hp-primary-700: #3730a3;
    --hp-primary-50: #eef2ff;
    --hp-primary-100: #e0e7ff;
    --hp-accent: #22d3ee;
    --hp-violet: #7c3aed;

    --hp-ink: #0f172a;
    --hp-body: #334155;
    --hp-muted: #64748b;
    --hp-bg: #f6f7fb;
    --hp-surface: #ffffff;
    --hp-surface-2: #f8fafc;
    --hp-border: #e6e8f0;

    --hp-radius-sm: 0.6rem;
    --hp-radius: 0.9rem;
    --hp-radius-lg: 1.15rem;
    --hp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --hp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -28px rgba(15, 23, 42, 0.35);

    --bs-primary: var(--hp-primary);
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: var(--hp-primary);
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: var(--hp-primary-600);
    --bs-link-hover-color-rgb: 67, 56, 202;
    --bs-body-color: var(--hp-body);
    --bs-body-bg: var(--hp-bg);
    --bs-border-color: var(--hp-border);
    --bs-border-radius: 0.75rem;
    --bs-border-radius-sm: var(--hp-radius-sm);
    --bs-border-radius-lg: var(--hp-radius);
    --bs-secondary-color: var(--hp-muted);
    --bs-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 0.95rem;
}

[data-bs-theme="dark"] {
    --hp-ink: #e8ecf7;
    --hp-body: #cbd5e1;
    --hp-muted: #94a3b8;
    --hp-bg: #070b16;
    --hp-surface: #101728;
    --hp-surface-2: #0d1424;
    --hp-border: #223049;
    --hp-primary-50: #1a2140;
    --hp-primary-100: #1e2750;
    --hp-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 50px -30px rgba(0, 0, 0, 0.8);
    --bs-body-bg: var(--hp-bg);
    --bs-body-color: var(--hp-body);
    --bs-border-color: var(--hp-border);
    --bs-secondary-bg: #0d1424;
    --bs-tertiary-bg: #131c30;
    --bs-emphasis-color: #f1f5f9;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
    font-size: 16px;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--hp-body);
    background-color: var(--hp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--hp-ink);
    font-weight: 700;
    letter-spacing: -0.015em;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--hp-primary);
    outline-offset: 2px;
}

.hp-skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.65rem 1rem;
    border-radius: var(--hp-radius-sm);
    background: var(--hp-primary);
    color: #fff;
    font-weight: 600;
    transition: top 0.15s ease;
}

.hp-skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Brand lockup
   -------------------------------------------------------------------------- */

.hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    color: var(--hp-ink);
}

.hp-brand:hover {
    color: var(--hp-ink);
}

.hp-brand__lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.hp-brand__mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 14px rgba(79, 70, 229, 0.35));
}

.hp-brand__mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hp-wordmark {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--hp-ink);
}

.hp-wordmark--sm {
    font-size: 1.05rem;
}

.hp-wordmark__accent {
    background: linear-gradient(120deg, var(--hp-primary), var(--hp-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hp-brand__img {
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.hp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--hp-surface) 88%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--hp-border);
}

.hp-header .navbar {
    padding: 0.65rem 0;
}

.hp-header__inner {
    min-height: 56px;
}

.hp-header .navbar-nav .nav-link {
    color: var(--hp-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.hp-header .navbar-nav .nav-link:hover,
.hp-header .navbar-nav .nav-link:focus {
    color: var(--hp-primary);
    background: var(--hp-primary-50);
}

.hp-header .navbar-nav .nav-link.active {
    color: var(--hp-primary);
    background: var(--hp-primary-50);
}

.hp-header .navbar-nav .nav-link .icon {
    height: 18px;
    width: 18px;
}

.hp-site-link {
    border: 1px solid var(--hp-border);
    margin-left: 0.25rem;
}

.hp-site-link:hover {
    border-color: var(--hp-primary-100);
}

.hp-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hp-navbar-toggler {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    padding: 0.35rem 0.5rem;
    background: var(--hp-surface);
}

.hp-navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.hp-header .dropdown-menu {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    padding: 0.4rem;
    background: var(--hp-surface);
}

.hp-header .dropdown-item {
    border-radius: var(--hp-radius-sm);
    padding: 0.5rem 0.7rem;
    font-weight: 500;
    color: var(--hp-body);
}

.hp-header .dropdown-item:hover {
    background: var(--hp-primary-50);
    color: var(--hp-primary);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.hp-main {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
}

/* Column widths are defined here instead of relying on Bootstrap grid utility
   classes: the shipped vendor.css is purged against Huraga's markup, so some
   utilities (for example .col-md-3) do not exist in the compiled bundle. */
.hp-sidebar {
    width: 25%;
}

.hp-content {
    width: 75%;
}

.hp-content--full {
    width: 100%;
}

.hp-nav-right {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .hp-sidebar,
    .hp-content,
    .hp-content--full {
        width: 100%;
    }
}

.hp-main--wide {
    max-width: 960px;
}

#wrapper {
    min-height: 55vh;
}

.hp-sidebar__panel {
    position: static;
}

/* Sticky only where the sidebar is an in-flow column (Bootstrap's offcanvas
   takes over below the md breakpoint and must keep its fixed positioning). */
@media (min-width: 768px) {
    .hp-sidebar__panel {
        position: sticky;
        top: 1.5rem;
    }
}

.hp-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--hp-border);
}

.hp-sidebar__title {
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-nav {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    padding: 0.55rem;
    box-shadow: var(--hp-shadow-sm);
    gap: 0.15rem;
}

.hp-nav__item {
    border: 0 !important;
}

.hp-nav__item:first-child,
.hp-nav__item:hover {
    border: 0 !important;
    background: transparent !important;
}

.hp-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.62rem 0.75rem;
    border-radius: var(--hp-radius-sm);
    color: var(--hp-body);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hp-nav .nav-link:hover {
    background: var(--hp-primary-50);
    color: var(--hp-primary);
}

/* Huraga ships `.nav-link.active { color: var(--bs-primary) !important }`, which
   would otherwise paint primary-coloured text on the primary gradient. */
.hp-nav .nav-link.active,
.hp-nav .nav-link.active:hover,
.hp-nav .nav-link.active:focus {
    background: linear-gradient(120deg, var(--hp-primary), var(--hp-violet));
    color: #fff !important;
    box-shadow: 0 10px 22px -12px rgba(79, 70, 229, 0.75);
}

.hp-nav .nav-link .icon {
    height: 18px;
    width: 18px;
    flex: 0 0 auto;
}

.hp-balance-card {
    margin-top: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--hp-radius-lg);
    border: 1px solid var(--hp-primary-100);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
        linear-gradient(135deg, var(--hp-primary-50), var(--hp-surface));
    box-shadow: var(--hp-shadow-sm);
}

.hp-balance-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hp-muted);
}

.hp-balance-card__value {
    display: block;
    margin: 0.15rem 0 0.35rem;
    font-size: 1.35rem;
    color: var(--hp-ink);
    letter-spacing: -0.02em;
}

.hp-balance-card__link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hp-primary);
}

.hp-sidebar__note {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--hp-radius-lg);
    border: 1px dashed var(--hp-border);
    background: var(--hp-surface);
    font-size: 0.85rem;
    color: var(--hp-muted);
}

.hp-sidebar__note-title {
    display: block;
    font-weight: 700;
    color: var(--hp-ink);
    margin-bottom: 0.2rem;
}

/* --------------------------------------------------------------------------
   Cards, tables, alerts
   -------------------------------------------------------------------------- */

.card {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    background: var(--hp-surface);
    box-shadow: var(--hp-shadow-sm);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--hp-border);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--hp-ink);
    border-top-left-radius: var(--hp-radius-lg) !important;
    border-top-right-radius: var(--hp-radius-lg) !important;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--hp-border);
    padding: 0.9rem 1.25rem;
}

.card-title {
    font-weight: 700;
    color: var(--hp-ink);
}

.card .card {
    box-shadow: none;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 0.8rem 0.85rem;
    border-bottom-color: var(--hp-border);
}

.table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hp-muted);
    font-weight: 700;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: var(--hp-primary-50);
}

.alert {
    border-radius: var(--hp-radius);
    border: 1px solid var(--hp-border);
    padding: 1rem 1.15rem;
}

.alert-info {
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        linear-gradient(135deg, var(--hp-primary-50), var(--hp-surface));
    border-color: var(--hp-primary-100);
    color: var(--hp-body);
}

.alert-info p:last-child {
    margin-bottom: 0;
}

.alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #14532d;
}

.alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #78350f;
}

.alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #7f1d1d;
}

[data-bs-theme="dark"] .alert-success {
    background: #062b1a;
    border-color: #14532d;
    color: #bbf7d0;
}

[data-bs-theme="dark"] .alert-warning {
    background: #2c1f06;
    border-color: #78350f;
    color: #fde68a;
}

[data-bs-theme="dark"] .alert-danger {
    background: #2b0b0b;
    border-color: #7f1d1d;
    color: #fecaca;
}

.badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35em 0.7em;
}

/* Huraga ships `.badge[class*=text-bg-] { color: #fff !important }`, so these
   rules match that specificity and are declared later, keeping the badge
   labels readable. */
.badge.text-bg-success {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.badge.text-bg-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.badge.text-bg-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.badge.text-bg-info {
    background: #cffafe !important;
    color: #155e75 !important;
}

.badge.text-bg-secondary {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

[data-bs-theme="dark"] .badge.text-bg-success {
    background: #052e16 !important;
    color: #86efac !important;
}

[data-bs-theme="dark"] .badge.text-bg-warning {
    background: #3b2503 !important;
    color: #fcd34d !important;
}

[data-bs-theme="dark"] .badge.text-bg-danger {
    background: #3b0a0a !important;
    color: #fca5a5 !important;
}

[data-bs-theme="dark"] .badge.text-bg-info {
    background: #083344 !important;
    color: #a5f3fc !important;
}

[data-bs-theme="dark"] .badge.text-bg-secondary {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--hp-radius-sm);
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.55rem;
    font-weight: 600;
    border-radius: var(--hp-radius-sm);
    transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--hp-primary);
    --bs-btn-border-color: var(--hp-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hp-primary-600);
    --bs-btn-hover-border-color: var(--hp-primary-600);
    --bs-btn-active-bg: var(--hp-primary-700);
    --bs-btn-active-border-color: var(--hp-primary-700);
    --bs-btn-disabled-bg: #a5b4fc;
    --bs-btn-disabled-border-color: #a5b4fc;
    background-image: linear-gradient(120deg, var(--hp-primary), var(--hp-violet));
    border: 0;
    box-shadow: 0 10px 20px -14px rgba(79, 70, 229, 0.9);
}

.btn-primary:hover {
    background-image: linear-gradient(120deg, var(--hp-primary-600), #6d28d9);
    box-shadow: 0 14px 26px -14px rgba(79, 70, 229, 0.85);
}

.btn-outline-primary {
    --bs-btn-color: var(--hp-primary);
    --bs-btn-border-color: #c7d2fe;
    --bs-btn-hover-color: var(--hp-primary-700);
    --bs-btn-hover-bg: var(--hp-primary-50);
    --bs-btn-hover-border-color: #a5b4fc;
    --bs-btn-active-bg: var(--hp-primary-100);
    --bs-btn-active-color: var(--hp-primary-700);
}

.btn-dark {
    --bs-btn-bg: var(--hp-ink);
    --bs-btn-border-color: var(--hp-ink);
    --bs-btn-hover-bg: #1e293b;
    --bs-btn-hover-border-color: #1e293b;
}

.btn-light {
    --bs-btn-bg: var(--hp-surface);
    --bs-btn-border-color: var(--hp-border);
    --bs-btn-hover-bg: var(--hp-surface-2);
}

.btn-link {
    color: var(--hp-primary);
    font-weight: 600;
    text-decoration: none;
}

.btn-lg {
    --bs-btn-padding-y: 0.8rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-font-size: 1rem;
}

.btn-sm {
    --bs-btn-padding-y: 0.35rem;
    --bs-btn-padding-x: 0.7rem;
    --bs-btn-font-size: 0.82rem;
}

.hp-btn-block {
    border-radius: var(--hp-radius-sm);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--hp-ink);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: var(--hp-radius-sm);
    border: 1px solid var(--hp-border);
    background-color: var(--hp-surface);
    color: var(--hp-body);
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: var(--hp-muted);
    opacity: 0.75;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
    background-color: var(--hp-surface);
    color: var(--hp-body);
}

.form-control-lg {
    padding: 0.75rem 0.95rem;
    font-size: 0.98rem;
    border-radius: var(--hp-radius-sm);
}

.form-check-input {
    border-color: #cbd5e1;
}

.form-check-input:checked {
    background-color: var(--hp-primary);
    border-color: var(--hp-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--hp-muted);
}

.input-group-text {
    border-radius: var(--hp-radius-sm);
    border-color: var(--hp-border);
    background: var(--hp-surface-2);
    color: var(--hp-muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Navigation extras
   -------------------------------------------------------------------------- */

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--hp-muted);
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #cbd5e1;
}

.breadcrumb a {
    color: var(--hp-muted);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--hp-primary);
}

.breadcrumb-item.active {
    color: var(--hp-body);
    font-weight: 600;
}

.nav-tabs {
    --bs-nav-tabs-border-color: var(--hp-border);
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--hp-muted);
    font-weight: 600;
    padding: 0.6rem 0.9rem;
}

.nav-tabs .nav-link.active {
    color: var(--hp-primary);
    border-bottom-color: var(--hp-primary);
    background: transparent;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--hp-primary);
}

.nav-pills .nav-link {
    border-radius: 999px;
    font-weight: 600;
    color: var(--hp-body);
}

.pagination {
    --bs-pagination-color: var(--hp-body);
    --bs-pagination-border-color: var(--hp-border);
    --bs-pagination-hover-bg: var(--hp-primary-50);
    --bs-pagination-hover-color: var(--hp-primary);
    --bs-pagination-active-bg: var(--hp-primary);
    --bs-pagination-active-border-color: var(--hp-primary);
    --bs-pagination-border-radius: var(--hp-radius-sm);
    gap: 0.25rem;
}

.dropdown-menu {
    border-color: var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    padding: 0.4rem;
}

.dropdown-item {
    border-radius: var(--hp-radius-sm);
    padding: 0.45rem 0.7rem;
}

.dropdown-item:hover {
    background: var(--hp-primary-50);
    color: var(--hp-primary);
}

.modal-content {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    background: var(--hp-surface);
}

.modal-header,
.modal-footer {
    border-color: var(--hp-border);
    padding: 1rem 1.25rem;
}

.offcanvas {
    background: var(--hp-surface);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.hp-footer {
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--hp-border);
    color: var(--hp-muted);
    font-size: 0.82rem;
}

.hp-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--hp-body);
    margin-bottom: 0.5rem;
}

.hp-footer__mark {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(120deg, var(--hp-primary), var(--hp-accent));
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.hp-footer__bank {
    margin-bottom: 0.5rem;
}

.hp-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.hp-footer__links a {
    color: var(--hp-muted);
    font-weight: 600;
}

.hp-footer__links a:hover {
    color: var(--hp-primary);
}

.hp-footer__dot {
    color: #cbd5e1;
}

.hp-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    color: var(--hp-body);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--hp-shadow);
}

.hp-to-top:hover {
    color: var(--hp-primary);
    border-color: var(--hp-primary-100);
}

/* --------------------------------------------------------------------------
   Public / auth pages
   -------------------------------------------------------------------------- */

.hp-public {
    min-height: 100vh;
    background:
        radial-gradient(1000px 500px at 8% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
        radial-gradient(900px 480px at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        var(--hp-bg);
}

.hp-auth {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

.hp-auth__aside {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3.5rem 4rem;
    color: #eef2ff;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(34, 211, 238, 0.28), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(124, 58, 237, 0.55), transparent 60%),
        linear-gradient(150deg, #1e1b4b, #312e81 55%, #4c1d95);
}

.hp-auth__aside-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 62vh;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* On wide screens the brand panel stays put while a long form (for example
   the registration page) scrolls next to it. */
@media (min-width: 992px) {
    .hp-auth__aside {
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        min-height: 100vh;
    }
}

.hp-auth__brand .hp-wordmark {
    color: #fff;
}

.hp-auth__brand .hp-wordmark__accent {
    background: linear-gradient(120deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
}

.hp-auth__pitch {
    margin: 3rem 0;
}

.hp-auth__pitch-title {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hp-auth__pitch-text {
    color: rgba(224, 231, 255, 0.82);
    font-size: 1rem;
    max-width: 42ch;
    margin-bottom: 1.75rem;
}

.hp-auth__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.hp-auth__list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(238, 242, 255, 0.92);
    font-weight: 500;
    font-size: 0.95rem;
}

.hp-auth__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.18);
    border: 1px solid rgba(103, 232, 249, 0.4);
    color: #a5f3fc;
    font-size: 0.7rem;
    font-weight: 800;
}

.hp-auth__aside-foot {
    margin: 0;
    color: rgba(199, 210, 254, 0.6);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.hp-auth__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}

.hp-auth__glow--one {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -60px;
    background: #22d3ee;
}

.hp-auth__glow--two {
    width: 280px;
    height: 280px;
    bottom: -90px;
    left: -40px;
    background: #7c3aed;
}

.hp-auth__main {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem 2.5rem;
    background: var(--hp-surface);
}

.hp-auth__topbar {
    display: flex;
    justify-content: flex-end;
    min-height: 40px;
}

.hp-auth__back {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hp-muted);
}

.hp-auth__back:hover {
    color: var(--hp-primary);
}

.hp-auth__cardwrap {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.hp-auth__cardwrap--wide {
    max-width: 560px;
}

.hp-auth__mobile-brand {
    display: none;
    margin-bottom: 1.25rem;
}

.hp-card--auth {
    border-radius: var(--hp-radius-lg);
    box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.45), 0 2px 4px rgba(15, 23, 42, 0.04);
}

.hp-card--auth .card-body {
    padding: 1.6rem;
}

.hp-auth__title {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}

.hp-auth__subtitle {
    color: var(--hp-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hp-auth__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.hp-auth__links a {
    color: var(--hp-primary);
}

.hp-auth__dot {
    color: #cbd5e1;
}

.hp-auth__legal {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.76rem;
    color: var(--hp-muted);
}

/* Password reset and other public cards keep the Huraga markup. */
.page-password-reset,
.page-maintenance {
    min-height: 100vh;
}

.page-password-reset .container,
.page-maintenance .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-password-reset .card,
.page-maintenance .card {
    border-radius: var(--hp-radius-lg);
    box-shadow: 0 30px 60px -42px rgba(15, 23, 42, 0.45);
}

.page-password-reset .card-body,
.page-maintenance .card-body {
    padding: 1.6rem;
}

/* Order button embeds stay compact and chrome-free. */
.page-order-button .card,
.page-orderbutton .card {
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.text-muted {
    color: var(--hp-muted) !important;
}

.hr,
hr {
    border-color: var(--hp-border);
    opacity: 1;
}

.list-group-item {
    background: var(--hp-surface);
    border-color: var(--hp-border);
}

.accordion {
    --bs-accordion-border-color: var(--hp-border);
    --bs-accordion-active-bg: var(--hp-primary-50);
    --bs-accordion-active-color: var(--hp-primary-700);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .hp-auth {
        grid-template-columns: 1fr;
    }

    .hp-auth__aside {
        display: none;
    }

    .hp-auth__main {
        min-height: 100vh;
        padding: 1.25rem 1.25rem 2rem;
    }

    .hp-auth__mobile-brand {
        display: block;
    }

    .hp-auth__topbar {
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hp-header {
        position: static;
    }

    .hp-main {
        padding-top: 1rem;
    }

    .hp-nav {
        border-radius: var(--hp-radius);
        margin-bottom: 0.5rem;
    }

    .hp-footer {
        margin-top: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
