/* =====================================================
   REJIST PORTAL — Custom Styles (Bootstrap 5 base)
   ===================================================== */

/* Fonts -------------------------------------------- */
:root {
    --rj-font-heading: 'Bebas Neue', sans-serif;
    --rj-font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Layout ------------------------------------------- */
html, body {
    height: 100%;
    font-family: var(--rj-font-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--rj-font-heading);
    letter-spacing: 0.02em;
}

button, .btn, input, textarea, select {
    font-family: var(--rj-font-body);
}

:root {
    --rj-ink: #10233f;
    --rj-surface: #f5f8fc;
    --rj-brand: #6366f1;
    --rj-brand-dark: #4f46e5;
    --rj-teal: #0891b2;
    --rj-green: #059669;
    --rj-amber: #d97706;
    /* legacy aliases */
    --demo-ink: #10233f;
    --demo-surface: #f5f8fc;
    --demo-brand: #6366f1;
    --demo-accent: #d97706;
    --demo-soft: #e0e7ff;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bs-body-bg);
    transition: margin-left 0.25s ease;
}

.page-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Sidebar ------------------------------------------ */
.sidebar {
    width: 270px;
    min-height: calc(100vh - 64px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, #0f1d34 0%, #16243f 55%, #1a2f54 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: width 0.25s ease, transform 0.25s ease;
    overflow-x: hidden;
    position: sticky;
    top: 64px;
    box-shadow: 8px 0 28px rgba(8, 18, 34, 0.22);
}

.sidebar.collapsed {
    width: 68px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 64px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.sidebar-logo span {
    color: #818cf8;
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 0.75rem 1.25rem 0.25rem;
}

.sidebar.collapsed .sidebar-section-label {
    visibility: hidden;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    margin: 0.1rem 0.55rem;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.sidebar-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    color: #fff;
    background-color: rgba(129,140,248,0.2);
    transform: translateX(1px);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99,102,241,0.55) 0%, rgba(99,102,241,0.15) 100%);
    border-left: 3px solid #93c5fd;
}

.sidebar-link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-link-text {
    display: none;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Top Bar ------------------------------------------ */
.topbar {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 1.1rem;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(16, 35, 63, 0.1);
    gap: 0.75rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(15, 28, 50, 0.08);
}

.topbar-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bs-body-color);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Auth Pages --------------------------------------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2e 100%);
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bs-body-bg);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 2.5rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bs-body-color);
}

.auth-logo-text span {
    color: #6366f1;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--bs-border-color);
}

/* Dashboard Cards ---------------------------------- */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.stat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-primary { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.stat-icon-success  { background: rgba(5,  150, 105, 0.12); color: #059669; }
.stat-icon-info     { background: rgba(8,  145, 178, 0.12); color: #0891b2; }
.stat-icon-warning  { background: rgba(217,119,   6, 0.12); color: #d97706; }
.stat-icon-danger   { background: rgba(241, 70, 104, 0.12); color: #f14668; }
.stat-icon-link     { background: rgba(72,  95, 193, 0.12); color: #485fc1; }

/* Badge variants for roles */
.badge-role-admin     { background-color: #6610f2; }
.badge-role-employee  { background-color: #0d6efd; }
.badge-role-frontdesk { background-color: #198754; }
.badge-role-security  { background-color: #dc3545; }

/* Tables ------------------------------------------ */
.table-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Page header -------------------------------------- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-header-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* Settings sidebar --------------------------------- */
.settings-sidebar .nav-link {
    color: var(--bs-body-color);
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.settings-sidebar .nav-link.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    font-weight: 600;
}

.settings-sidebar .nav-link:hover:not(.active) {
    background-color: var(--bs-secondary-bg);
}

/* Loading skeleton --------------------------------- */
@keyframes skeleton-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.skeleton {
    background-color: var(--bs-secondary-bg);
    border-radius: 0.375rem;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Avatar ------------------------------------------ */
.avatar {
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #0891b2);
    color: #fff;
    flex-shrink: 0;
}

/* Responsive -------------------------------------- */
@media (max-width: 991.98px) {
    .sidebar {
        width: 84px;
        min-height: calc(100vh - 64px);
        top: 64px;
    }

    .sidebar .sidebar-brand-name,
    .sidebar .sidebar-label,
    .sidebar .sidebar-arrow,
    .sidebar .sidebar-collapse-btn {
        display: none;
    }

    .sidebar-link {
        justify-content: center;
        padding: 0.7rem 0.4rem;
        margin: 0.12rem 0.45rem;
    }

    .sidebar-submenu {
        display: none !important;
    }

    .topbar-search {
        max-width: 180px;
    }

    .page-content {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
    }

    .page-header {
        flex-direction: column;
    }

    .topbar {
        padding: 0 0.65rem;
    }

    .topbar-search {
        display: none;
    }

    .topbar-username {
        display: none;
    }

    .sidebar {
        width: 68px;
    }
}

/* Blazor error UI ---------------------------------- */
#blazor-error-ui {
    background: #dc3545;
    color: #fff;
    display: none;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    position: fixed;
    z-index: 9999;
    font-size: 0.9rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
    font-size: 1.25rem;
    line-height: 1;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
}

/* Demo UI theme showcase --------------------------- */
.demo-ui-section {
    padding: 4rem 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.15) 0, transparent 45%),
        linear-gradient(180deg, #f9fbff 0%, var(--demo-surface) 100%);
}

.demo-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--demo-brand), #2563eb);
}

.demo-title {
    color: var(--demo-ink);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.demo-subtitle {
    color: #4b5563;
    max-width: 760px;
    margin-bottom: 2rem;
}

.demo-theme-card {
    height: 100%;
    border-radius: 1rem;
    border: 1px solid #dbe4f3;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 35, 63, 0.08);
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(16, 35, 63, 0.14);
}

.demo-theme-card h4 {
    font-size: 1.05rem;
    color: var(--demo-ink);
}

.demo-theme-swatches {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-theme-swatches span {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.demo-ui-panel {
    border-radius: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #dbe4f3;
}

.demo-kpi {
    border-radius: 0.9rem;
    padding: 1rem;
    background: linear-gradient(145deg, #f8fafc, #eef5ff);
    border: 1px solid #dde8fa;
}

.demo-kpi-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.demo-kpi-value {
    color: var(--demo-ink);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.demo-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #ecfeff;
    color: #0f766e;
}

.demo-btn-accent {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    color: #fff;
}

.demo-btn-accent:hover {
    color: #fff;
    filter: brightness(1.03);
}

@media (max-width: 575.98px) {
    .demo-ui-section {
        padding: 3rem 0;
    }
}

/* =================================================
   SIDEBAR COMPONENT EXTRAS
   ================================================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 64px;
    gap: 0.5rem;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.sidebar-brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 0.4rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
    font-size: 1rem;
}

.sidebar-collapse-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.sidebar.is-collapsed {
    width: 64px;
}

.sidebar.is-collapsed .sidebar-brand-name,
.sidebar.is-collapsed .sidebar-label,
.sidebar.is-collapsed .sidebar-arrow {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    display: block;
    position: relative;
}

.sidebar-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.sidebar-arrow {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s;
    opacity: 0.6;
    font-size: 0.75rem;
}

.sidebar-item.is-active > .sidebar-link {
    color: #fff;
    background: linear-gradient(90deg, rgba(99,102,241,0.55) 0%, rgba(99,102,241,0.15) 100%);
    border-left: 3px solid #93c5fd;
}

.sidebar-item.is-expanded > .sidebar-link .sidebar-arrow {
    transform: rotate(-180deg);
}

.sidebar-submenu {
    display: none;
    list-style: none;
    padding: 0;
    background: rgba(0,0,0,0.12);
}

.sidebar-item.is-expanded > .sidebar-submenu {
    display: block;
}

.sidebar-submenu .sidebar-link {
    padding-left: 3rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.sidebar-submenu .sidebar-item.is-active > .sidebar-link {
    color: #fff;
    background-color: rgba(129,140,248,0.15);
    border-left: 3px solid #818cf8;
}

/* =================================================
   TOPBAR COMPONENT EXTRAS
   ================================================= */

.topbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: auto;
}

.topbar-search {
    max-width: 280px;
    width: 100%;
    position: relative;
}

.topbar-search .control {
    position: relative;
}

.topbar-search .input {
    width: 100%;
    padding: 0.45rem 1rem 0.45rem 2.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.topbar-search .input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    background: var(--bs-body-bg);
}

.topbar-search .icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    pointer-events: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.topbar-item {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-icon-btn {
    background: none;
    border: none;
    border-color: transparent;
    box-shadow: none;
    color: var(--bs-body-color);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    font-size: 0.9rem;
    transition: background 0.15s;
    line-height: 1;
    text-decoration: none;
    min-height: 2.25rem;
    height: auto;
    white-space: nowrap;
}

.button.topbar-icon-btn {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.topbar-icon-btn:hover {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.topbar-icon-btn i {
    font-size: 1.15rem;
}

.topbar-icon-btn .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
}

.topbar-icon-btn .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar.is-small .avatar-initials {
    width: 100%;
    height: 100%;
    font-size: 0.78rem;
}

#notifications-dropdown .topbar-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 0.6rem;
    position: relative;
}

#notifications-dropdown .topbar-icon-btn .badge {
    position: absolute;
    top: -0.25rem;
    right: -0.3rem;
}

#profile-dropdown .topbar-icon-btn {
    padding: 0.34rem 0.7rem 0.34rem 0.38rem;
    border-radius: 0.8rem;
    background: rgba(10, 25, 47, 0.06);
}

#profile-dropdown .topbar-icon-btn:hover {
    background: rgba(10, 25, 47, 0.1);
}

.topbar-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom toggle dropdown for topbar */
.topbar-item .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 240px;
    z-index: 200;
    padding: 0.375rem 0;
    overflow: hidden;
}

.topbar-item.is-active .dropdown-menu {
    display: block;
}

.topbar-item .dropdown-content {
    padding: 0;
}

.topbar-item .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    color: var(--bs-body-color);
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.1s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.topbar-item .dropdown-item:hover {
    background: var(--bs-secondary-bg);
}

.topbar-item .dropdown-item.has-text-danger {
    color: var(--bs-danger);
}

.topbar-item .dropdown-item.has-text-primary {
    color: #6366f1;
}

.topbar-item .dropdown-item.has-text-centered {
    justify-content: center;
}

.topbar-item .dropdown-divider {
    border: none;
    border-top: 1px solid var(--bs-border-color);
    margin: 0.25rem 0;
}

.notifications-header {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 0.25rem;
}

.notifications-header p {
    margin: 0;
    font-weight: 700;
    font-size: 0.875rem;
}

.notification-item {
    align-items: flex-start !important;
    padding: 0.625rem 1rem !important;
}

.notification-item.is-unread {
    background: rgba(99,102,241,0.05);
}

.notification-icon {
    width: 28px;
    flex-shrink: 0;
    padding-top: 0.1rem;
    font-size: 1.1rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.notification-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 0.25rem;
    pointer-events: none;
}

.profile-info {
    min-width: 0;
}

.profile-info p {
    margin: 0;
}

/* =================================================
   AVATAR EXTRAS
   ================================================= */

.avatar.is-small {
    width: 32px;
    height: 32px;
}

.avatar.is-medium {
    width: 48px;
    height: 48px;
}

.avatar.is-medium .avatar-initials {
    font-size: 1rem;
}

/* =================================================
   BULMA HELPER ALIASES
   ================================================= */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon.is-large {
    font-size: 3rem;
}

.has-text-weight-semibold { font-weight: 600 !important; }
.has-text-grey            { color: var(--bs-secondary-color) !important; }
.is-size-7                { font-size: 0.75rem !important; }
.has-text-centered        { text-align: center !important; }
.has-text-primary         { color: #6366f1 !important; }
.has-text-danger          { color: var(--bs-danger) !important; }
.has-text-info            { color: var(--bs-info) !important; }
.has-text-success         { color: var(--bs-success) !important; }
.has-text-warning         { color: var(--bs-warning) !important; }
.is-hidden-mobile         {}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.6em;
    font-size: 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    line-height: 1.3;
}

.tag.is-light.is-primary.is-small {
    background-color: rgba(99,102,241,0.1);
    color: #6366f1;
}

/* =================================================
   MODERN LOGIN  — split-screen auth layout
   ================================================= */

.modern-login {
    min-height: 100dvh;
    display: flex;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.modern-login .underlay {
    display: none;
}

.modern-login .columns {
    display: flex;
    width: 100%;
    margin: 0;
    flex: 1;
    align-items: stretch;
}

.modern-login .column.is-6.is-image {
    flex: 0 0 50%;
    max-width: 50%;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.75rem, 4vw, 4.25rem);
    position: relative;
    overflow: hidden;
}

.modern-login .column.is-6.is-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(99,102,241,0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(8,145,178,0.2) 0%, transparent 50%);
}

.modern-login .hero-image {
    width: min(82%, 40rem);
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.modern-login .column.is-6.is-form-column {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.75rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    overflow-y: auto;
}

.modern-login .is-form {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: clamp(1.5rem, 2.2vw, 2.35rem) clamp(1.15rem, 2vw, 1.9rem);
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.modern-login .top-logo {
    margin-bottom: 2rem;
}

.modern-login .top-logo img {
    height: 44px;
    width: auto;
}

.modern-login .form-text {
    margin-bottom: 1.25rem;
}

.modern-login .form-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rj-ink, #10233f);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.modern-login .form-text p {
    color: var(--bs-secondary-color);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Auth form inputs */
.login-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-wrapper .control {
    position: relative;
}

.login-wrapper .control .input {
    width: 100%;
    min-height: 3.4rem;
    padding: 1rem 2.75rem 0.4rem 1rem;
    border: 1.5px solid var(--bs-border-color);
    border-radius: 0.65rem;
    font-size: 0.9375rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-wrapper .control .input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.login-wrapper .control .auth-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    pointer-events: none;
    transition: all 0.15s;
    background: transparent;
}

.login-wrapper .control .input:focus ~ .auth-label,
.login-wrapper .control .input:not(:placeholder-shown) ~ .auth-label {
    top: 0.55rem;
    transform: none;
    font-size: 0.7rem;
    color: #6366f1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-wrapper .control .auth-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    pointer-events: none;
}

.login-wrapper .control .validation-icon {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.login-wrapper .control .validation-icon.is-success .icon-wrapper {
    color: #059669;
}

.login-wrapper .button-wrap {
    margin-top: 0.125rem;
}

.auth-links {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.auth-links .is-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-weight: 600;
}

.primary-button,
button.primary-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff !important;
    border: none;
    border-radius: 0.65rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s, opacity 0.15s;
}

.primary-button:hover {
    filter: brightness(1.06);
    color: #fff;
}

.primary-button:active {
    transform: scale(0.99);
}

.primary-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.oauth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.oauth-button,
button.oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: var(--bs-body-bg);
    border: 1.5px solid var(--bs-border-color);
    border-radius: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--bs-body-color);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.oauth-button:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
    color: var(--bs-body-color);
}

.welcome-back-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: #ecfdf5;
    border-radius: 0.5rem;
    border: 1px solid #a7f3d0;
}

.auth-footer {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.875rem;
}

.auth-footer p {
    margin: 0.375rem 0;
    color: var(--bs-secondary-color);
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-page-footer {
    margin-top: 1rem;
}

.auth-page-footer--spaced {
    margin-top: 2rem;
}

.auth-page-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    white-space: normal;
}

.auth-page-footer__copyright {
    margin: 0;
    line-height: 1.4;
}

.auth-page-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-page-footer__links a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.auth-page-footer__separator {
    color: var(--bs-secondary-color);
    opacity: 0.65;
}

.docs-page .is-form.is-centered.docs-shell {
    max-width: 1080px;
    text-align: left;
}

.docs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.docs-topbar__brand {
    color: var(--rj-ink, #10233f);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.docs-topbar__links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.docs-topbar__link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.docs-topbar__link:hover,
.docs-topbar__link:focus-visible {
    color: var(--rj-brand, #1c65af);
    border-color: rgba(28, 101, 175, 0.4);
    background: rgba(28, 101, 175, 0.08);
}

.docs-topbar__link.is-active {
    color: var(--rj-brand, #1c65af);
    border-color: rgba(28, 101, 175, 0.38);
    background: rgba(28, 101, 175, 0.12);
}

.docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.35rem;
}

.docs-main {
    min-width: 0;
}

.docs-header {
    margin-bottom: 0.95rem;
}

.docs-kicker {
    display: inline-flex;
    margin: 0 0 0.5rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(28, 101, 175, 0.1);
    color: var(--rj-brand, #1c65af);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-inline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.docs-inline-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.docs-inline-nav a:hover,
.docs-inline-nav a:focus-visible {
    color: var(--rj-brand, #1c65af);
    border-color: rgba(28, 101, 175, 0.35);
    background: rgba(28, 101, 175, 0.08);
}

.docs-meta {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
}

.docs-content {
    color: #374151;
    line-height: 1.72;
}

.docs-section {
    padding: 1rem 0 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-content h4 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    color: var(--rj-ink, #0a192f);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-content h4 i {
    font-size: 0.9rem;
    color: var(--rj-brand, #1c65af);
    opacity: 0.8;
    flex-shrink: 0;
}

.docs-content p {
    margin-bottom: 0.75rem;
}

.docs-content a {
    color: var(--rj-brand, #1c65af);
    font-weight: 600;
}

.docs-aside {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: start;
    position: sticky;
    top: 1.25rem;
    padding: 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.9);
}

.docs-aside h3 {
    margin: 0 0 0.6rem;
    color: var(--rj-ink, #0a192f);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.docs-aside a {
    color: #334155;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.45rem;
    margin: 0 -0.5rem;
    transition: background 0.15s, color 0.15s;
}

.docs-aside a:hover,
.docs-aside a:focus-visible {
    color: var(--rj-brand, #1c65af);
    text-decoration: none;
    background: rgba(28, 101, 175, 0.08);
}

.docs-contact-card {
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.85);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.docs-contact-card:hover {
    border-color: rgba(28, 101, 175, 0.28);
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.07);
}

.docs-actions {
    margin-top: 1.5rem;
}

.docs-actions .primary-button {
    width: auto !important;
    display: inline-flex !important;
    min-width: 200px;
}

.docs-footer {
    margin-top: 1.25rem;
}

.modern-login .auth-page-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
}

.auth-page-footer__links a:hover {
    text-decoration: underline;
}

.modern-login .is-form.is-centered {
    max-width: 460px;
    text-align: center;
}

.loading-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 4rem;
    margin-top: 0.35rem;
    border-radius: 0.85rem;
    background: rgba(99, 102, 241, 0.06);
    color: #4338ca;
    font-weight: 600;
}

.signup-page .login-wrapper.signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.signup-page .login-wrapper.signup-grid > .control,
.signup-page .login-wrapper.signup-grid > .button-wrap,
.signup-page .login-wrapper.signup-grid > .auth-divider,
.signup-page .login-wrapper.signup-grid > .oauth-buttons {
    grid-column: 1 / -1;
}

.signup-page .login-wrapper.signup-grid > .control.signup-half {
    grid-column: span 1;
}

.signup-page .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.signup-page .checkbox-text {
    display: inline-block;
    color: var(--bs-secondary-color);
    line-height: 1.45;
}

.help.is-danger {
    color: var(--bs-danger);
    font-size: 0.8125rem;
    margin: 0;
    display: block;
}

.help.is-success {
    color: var(--bs-success);
    font-size: 0.8125rem;
    margin: 0;
    display: block;
}

/* Auth alert boxes */
.notification.is-success.is-light {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.65rem;
    color: #065f46;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    position: relative;
    margin-bottom: 0.875rem;
}

.notification.is-danger.is-light,
.notification.is-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.65rem;
    color: #991b1b;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    position: relative;
    margin-bottom: 0.875rem;
}

.notification .delete {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    color: currentColor;
}

.notification .delete:hover {
    opacity: 1;
}

.verification-page .form-text {
    margin-bottom: 1.6rem;
}

.verification-page .column.is-6.is-image {
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.2), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.32), transparent 34%),
        linear-gradient(160deg, #0f172a 0%, #172554 48%, #1e3a8a 100%);
}

.verification-page .column.is-6.is-form-column {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.verification-form-shell {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    max-width: 620px;
    padding: clamp(2.4rem, 3vw, 3rem) clamp(1.6rem, 2.4vw, 2.4rem);
}

.verification-page .login-wrapper {
    gap: 1rem;
}

.verification-page .auth-page-footer {
    margin-top: 1.45rem;
}

.verification-hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: 760px;
}

.verification-hero-copy {
    color: #e2e8f0;
}

.verification-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #bfdbfe;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.verification-hero-copy h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.verification-hero-copy p {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.4rem;
    max-width: 34rem;
}

.verification-hero-points {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.verification-hero-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.verification-hero-point i {
    color: #93c5fd;
    font-size: 1rem;
}

.verification-hero-art {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-hero-art .hero-image {
    max-height: 420px;
}

.verification-hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
}

.verification-hero-orb--one {
    width: 180px;
    height: 180px;
    top: 10%;
    right: 8%;
    background: rgba(59, 130, 246, 0.24);
}

.verification-hero-orb--two {
    width: 130px;
    height: 130px;
    bottom: 8%;
    left: 8%;
    background: rgba(129, 140, 248, 0.3);
}

.verification-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.verification-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1.15rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.verification-summary__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #6366f1 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.verification-summary__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.verification-summary__line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 0.45rem;
    row-gap: 0.15rem;
    overflow-wrap: anywhere;
}

.verification-summary__key {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.verification-summary__value {
    color: var(--rj-ink, #10233f);
    font-size: 0.97rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.verification-summary__separator {
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0 0.2rem;
}

.verification-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.verification-notice i {
    font-size: 1rem;
    margin-top: 0.1rem;
}

.verification-code-input {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.verification-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
}

.verification-secondary-button,
button.verification-secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.65rem;
    border: 1.5px solid rgba(99, 102, 241, 0.18);
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.verification-secondary-button:hover,
.verification-secondary-button:focus-visible {
    background: #e0e7ff;
    color: #3730a3;
}

.verification-link-button,
button.verification-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.65rem;
    background: #fff;
    color: var(--rj-ink, #10233f);
    font-weight: 600;
}

.verification-link-button:hover,
.verification-link-button:focus-visible {
    border-color: rgba(99, 102, 241, 0.25);
    color: #4338ca;
}

.verification-footer {
    margin-top: 1.45rem;
}

.verification-help-list {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.45rem;
}

.verification-help-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.84rem;
    line-height: 1.35;
}

.verification-help-item i {
    color: #6474d7;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .verification-secondary-actions {
        grid-template-columns: 1fr;
    }

    .verification-summary {
        grid-template-columns: 1fr;
    }

    .verification-summary__separator {
        display: none;
    }

    .verification-summary__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .verification-form-shell {
        border-radius: 1rem;
        box-shadow: none;
        border: none;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (max-width: 767.98px) {
    .modern-login .column.is-6.is-hidden-mobile {
        display: none;
    }

    .modern-login .column.is-6.is-form-column {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .modern-login .is-form {
        max-width: 100%;
        min-height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 1.5rem 1.1rem 1.25rem;
    }

    .auth-page-footer__inner {
        flex-wrap: wrap;
        white-space: normal;
    }

    .auth-page-footer__links {
        flex-wrap: wrap;
    }

    .signup-page .login-wrapper.signup-grid {
        grid-template-columns: 1fr;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-topbar__links {
        justify-content: flex-start;
    }

    .docs-aside {
        position: static;
        margin-top: 0.5rem;
    }
}

/* =================================================
   DASHBOARD — Bulma class replacements
   ================================================= */

section.section {
    padding: 1.5rem;
}

section.section .container {
    max-width: 100%;
}

.level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.level-left,
.level-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.level-item {}

.title {
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--bs-secondary-color);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.label.is-small {
    font-size: 0.8125rem;
}

.select.is-primary select {
    border: 1.5px solid #6366f1;
    border-radius: 0.5rem;
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    font-size: 0.875rem;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    cursor: pointer;
    appearance: auto;
    font-family: inherit;
}

.box {
    background: var(--bs-body-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--bs-border-color);
}

.title.is-5 {
    font-size: 1rem;
    font-weight: 700;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Bulma button aliases */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: filter 0.15s, box-shadow 0.15s;
}

.button.is-info    { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.button.is-info:hover    { filter: brightness(0.92); color: #fff; }
.button.is-link    { background: #6366f1; color: #fff; border-color: #6366f1; }
.button.is-link:hover    { filter: brightness(0.92); color: #fff; }
.button.is-primary { background: #6366f1; color: #fff; border-color: #6366f1; }
.button.is-primary:hover { filter: brightness(0.92); color: #fff; }
.button.is-success { background: #059669; color: #fff; border-color: #059669; }
.button.is-success:hover { filter: brightness(0.92); color: #fff; }
.button.is-warning { background: #d97706; color: #fff; border-color: #d97706; }
.button.is-warning:hover { filter: brightness(0.92); color: #fff; }
.button.is-danger  { background: var(--bs-danger); color: #fff; border-color: var(--bs-danger); }
.button.is-danger:hover  { filter: brightness(0.92); color: #fff; }
.button.is-ghost   { background: transparent; color: var(--bs-body-color); border-color: transparent; }
.button.is-ghost:hover   { background: var(--bs-secondary-bg); }
.button.is-light   { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.button.is-light:hover   { background: #e5e7eb; color: #374151; }

/* =================================================
   REJIST-WEBSITE THEME OVERRIDES
   Keep this block at the end so it wins over earlier defaults.
   ================================================= */

:root {
    --rj-ink: #0a192f;
    --rj-surface: #f3f8ff;
    --rj-brand: #1c65af;
    --rj-brand-dark: #0f2d5e;
    --rj-teal: #0891b2;
    --rj-green: #059669;
    --rj-amber: #f97316;
    --demo-ink: #0a192f;
    --demo-surface: #f3f8ff;
    --demo-brand: #1c65af;
    --demo-accent: #f97316;
    --demo-soft: #dbeafe;
}

body {
    background:
        radial-gradient(circle at 7% 8%, rgba(125, 211, 252, 0.16) 0%, transparent 33%),
        radial-gradient(circle at 92% 92%, rgba(249, 115, 22, 0.1) 0%, transparent 30%),
        #f7fbff;
    color: #0f172a;
}

.sidebar {
    background: linear-gradient(160deg, #0a192f 0%, #0f2d5e 60%, #1c65af 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-item.is-active > .sidebar-link,
.sidebar-submenu .sidebar-item.is-active > .sidebar-link {
    background-color: rgba(125, 211, 252, 0.22);
    border-left-color: #7dd3fc;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.14);
}

.topbar {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(10, 25, 47, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.topbar-search .input:focus,
.login-wrapper .control .input:focus,
.oauth-button:hover {
    border-color: #1c65af;
    box-shadow: 0 0 0 3px rgba(28, 101, 175, 0.14);
}

.login-wrapper .control .input:focus ~ .auth-label,
.login-wrapper .control .input:not(:placeholder-shown) ~ .auth-label,
.has-text-primary,
.topbar-item .dropdown-item.has-text-primary {
    color: #1c65af !important;
}

.avatar-initials,
.primary-button,
button.primary-button,
.button.is-link,
.button.is-primary,
.button.is-info {
    background: linear-gradient(140deg, #1c65af 0%, #0f2d5e 100%);
    border-color: #1c65af;
    color: #fff;
}

.button.is-warning,
.demo-btn-accent {
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-color: #f97316;
    color: #fff;
}

.modern-login .column.is-6.is-image,
.auth-wrapper {
    background: linear-gradient(150deg, #0a192f 0%, #0f2d5e 55%, #1c65af 100%);
}

.modern-login .column.is-6.is-image::before {
    background:
        radial-gradient(circle at 30% 40%, rgba(125, 211, 252, 0.24) 0%, transparent 58%),
        radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.13) 0%, transparent 50%);
}

.box,
.stat-card,
.demo-theme-card,
.demo-ui-panel {
    border: 1px solid #dbe7f6;
    box-shadow: 0 10px 26px rgba(10, 25, 47, 0.07);
}

.notification-item.is-unread {
    background: rgba(28, 101, 175, 0.08);
}

.tag.is-light.is-primary.is-small {
    background-color: rgba(28, 101, 175, 0.1);
    color: #1c65af;
}

/* =================================================
   HURO / ADMIN HOME COMPONENTS
   ================================================= */

.h-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.h-icon.is-rounded { border-radius: 50%; }
.h-icon.is-purple,
.h-icon.is-primary { background: rgba(28, 101, 175, 0.14); color: #1c65af; }
.h-icon.is-green   { background: rgba(5, 150, 105, 0.14);  color: #059669; }
.h-icon.is-orange  { background: rgba(217, 119, 6, 0.14);  color: #d97706; }
.h-icon.is-info    { background: rgba(8, 145, 178, 0.14);  color: #0891b2; }
.h-icon.is-danger,
.h-icon.is-red     { background: rgba(220, 38, 38, 0.12);  color: #dc2626; }

.h-avatar { display: flex; align-items: center; }
.h-avatar.is-large { width: 56px; height: 56px; }
.h-avatar .avatar.is-squared { border-radius: 0.65rem !important; }

.h-button.is-primary.is-elevated {
    background: linear-gradient(140deg, #1c65af 0%, #0f2d5e 100%);
    color: #fff;
    border-color: #1c65af;
    box-shadow: 0 4px 12px rgba(28, 101, 175, 0.3);
}

.h-button.is-dark-outlined {
    background: transparent;
    color: var(--rj-ink, #0a192f);
    border: 1.5px solid rgba(10, 25, 47, 0.18);
}

.h-button.is-dark-outlined:hover {
    background: rgba(10, 25, 47, 0.05);
    color: var(--rj-ink, #0a192f);
}

.dashboard-card {
    background: var(--bs-body-bg);
    border: 1px solid #dbe7f6;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(10, 25, 47, 0.06);
    height: 100%;
}

.dashboard-card h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 1rem;
}

.dashboard-card.is-upgrade {
    background: linear-gradient(140deg, #0a192f 0%, #1c65af 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dashboard-card.is-upgrade h4 { color: rgba(255, 255, 255, 0.6); }
.dashboard-card.is-upgrade .cta-content h4 { color: #fff; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.dashboard-card.is-upgrade .white-text { color: rgba(255, 255, 255, 0.78); }
.dashboard-card.is-upgrade > i {
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}
.link.inverted-text {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline;
}

.quick-stats { padding: 0.25rem 0; }
.quick-stats-inner { display: flex; flex-direction: column; gap: 0.85rem; }
.quick-stat { display: flex; align-items: center; }
.media-flex-center { display: flex; align-items: center; gap: 0.75rem; width: 100%; }
.flex-meta { display: flex; flex-direction: column; min-width: 0; }
.flex-meta span:first-child {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rj-ink, #0a192f);
    line-height: 1.1;
    font-family: var(--rj-font-heading);
}
.flex-meta span:last-child { font-size: 0.78rem; color: #64748b; }

.flex-table { display: flex; flex-direction: column; }
.flex-table-header {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.flex-table-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
    border-radius: 0.4rem;
}
.flex-table-item:hover { background: #f8fafc; }
.flex-table-item:last-child { border-bottom: none; }
.flex-table-cell { flex: 1; font-size: 0.875rem; }
.flex-table-cell.is-grow-lg { flex: 2; }
.flex-table-cell.is-media { display: flex; align-items: center; gap: 0.6rem; }
.flex-table-cell.cell-end { flex: none; text-align: right; }
.item-name { display: block; font-weight: 600; font-size: 0.875rem; color: var(--rj-ink, #0a192f); }
.item-meta { display: block; font-size: 0.72rem; color: #64748b; }
.light-text { color: #64748b; font-size: 0.875rem; }

.recent-rookies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.recent-rookies-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rj-ink, #0a192f);
    margin: 0;
}
.action-link {
    color: var(--rj-brand, #1c65af);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.action-link:hover { text-decoration: underline; }

.grid-item {
    padding: 1.5rem 1rem;
    border-radius: 14px;
    border: 1px solid #dbe7f6;
    background: var(--bs-body-bg);
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 4px 16px rgba(10, 25, 47, 0.05);
    cursor: pointer;
    height: 100%;
}
.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.10);
    border-color: rgba(28, 101, 175, 0.25);
}
.grid-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rj-ink, #0a192f);
    margin: 0.5rem 0 0.2rem;
}
.grid-item p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

/* =================================================
   COLORED STAT CARDS (FrontDesk / Security pages)
   ================================================= */

.stat-card.stat-card-primary,
.stat-card.stat-card-success,
.stat-card.stat-card-warning,
.stat-card.stat-card-info,
.stat-card.stat-card-danger {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: none;
    box-shadow: 0 4px 16px rgba(10, 25, 47, 0.1);
    height: 100%;
}
.stat-card-primary { background: linear-gradient(135deg, #1c65af 0%, #0f2d5e 100%); }
.stat-card-success  { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.stat-card-warning  { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.stat-card-info     { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.stat-card-danger   { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }

.stat-card-primary .stat-icon,
.stat-card-success .stat-icon,
.stat-card-warning .stat-icon,
.stat-card-info    .stat-icon,
.stat-card-danger  .stat-icon {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}
.stat-card-primary .stat-number,
.stat-card-success .stat-number,
.stat-card-warning .stat-number,
.stat-card-info    .stat-number,
.stat-card-danger  .stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin: 0;
    font-family: var(--rj-font-heading);
}
.stat-card-primary .stat-label,
.stat-card-success .stat-label,
.stat-card-warning .stat-label,
.stat-card-info    .stat-label,
.stat-card-danger  .stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}
.stat-content { flex: 1; min-width: 0; }

/* =================================================
   BTN ALIASES — Bootstrap-style button classes
   (Settings pages use these; standardised here)
   ================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: filter 0.15s, box-shadow 0.15s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: linear-gradient(140deg, #1c65af 0%, #0f2d5e 100%);
    color: #fff;
    border-color: #1c65af;
}
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
.btn-secondary:hover { background: #e5e7eb; color: #374151; }
.btn-danger {
    background: var(--bs-danger);
    color: #fff;
    border-color: var(--bs-danger);
}
.btn-danger:hover { filter: brightness(0.92); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }


/* =====================================================
   ERROR HANDLING — rj-error-card, overlay, toast
   ===================================================== */

/* ── Error Card (inline + overlay content) ─────────── */
.rj-error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 520px;
    margin: 0 auto;
}

.rj-error-card.is-compact {
    padding: 1.5rem 1rem;
}

.rj-error-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.rj-error-card__icon.is-danger  { background: #fef2f2; color: #dc2626; }
.rj-error-card__icon.is-warning { background: #fffbeb; color: #d97706; }
.rj-error-card__icon.is-info    { background: #eff6ff; color: #2563eb; }

.rj-error-card__status {
    font-family: var(--rj-font-heading, 'Bebas Neue', sans-serif);
    font-size: 3.5rem;
    line-height: 1;
    color: #1c65af;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.rj-error-card.is-compact .rj-error-card__status {
    font-size: 2.25rem;
}

.rj-error-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a192f;
    margin: 0 0 0.6rem;
}

.rj-error-card__desc {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 400px;
}

.rj-error-card__ref {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: -0.75rem 0 1.25rem;
}

.rj-error-card__ref code {
    font-size: 0.78rem;
    background: #f1f5f9;
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

.rj-error-card__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.rj-error-card__support {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.rj-error-card__support a {
    color: #1c65af;
}

/* ── Component error (shown inline within ErrorBoundary) ── */
.rj-component-error {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ── Full-screen overlay (critical errors) ─────────── */
.rj-error-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.rj-error-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.rj-error-overlay__content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(10, 25, 47, 0.22);
    padding: 1rem;
    width: 100%;
    max-width: 540px;
    animation: rj-error-slide-in 0.25s ease;
}

@keyframes rj-error-slide-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Toast (non-critical, dismissible) ─────────────── */
.rj-error-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.rj-error-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(10, 25, 47, 0.16);
    padding: 0.875rem 1rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    border-left: 4px solid transparent;
    animation: rj-toast-in 0.22s ease;
}

.rj-error-toast.is-warning { border-color: #d97706; }
.rj-error-toast.is-info    { border-color: #2563eb; }
.rj-error-toast.is-danger  { border-color: #dc2626; }

@keyframes rj-toast-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.rj-error-toast__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.rj-error-toast.is-warning .rj-error-toast__icon { color: #d97706; }
.rj-error-toast.is-info    .rj-error-toast__icon { color: #2563eb; }
.rj-error-toast.is-danger  .rj-error-toast__icon { color: #dc2626; }

.rj-error-toast__body { flex: 1; min-width: 0; }

.rj-error-toast__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0a192f;
    margin: 0 0 0.2rem;
}

.rj-error-toast__desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.rj-error-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}

.rj-error-toast__close:hover { color: #0a192f; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 767.98px) {
    .rj-error-toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .rj-error-toast {
        max-width: 100%;
        min-width: unset;
    }

    .rj-error-overlay__content {
        border-radius: 14px;
    }
}

/* --- Support article sidebar nav ------------------ */
.rj-support-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rj-support-nav li {
    border-radius: 0.4rem;
    margin-bottom: 0.15rem;
}
.rj-support-nav li a {
    display: block;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    color: #334155;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s;
}
.rj-support-nav li a:hover {
    background: #f1f5f9;
    color: var(--rj-brand);
}
.rj-support-nav li.is-active a {
    background: rgba(99, 102, 241, 0.08);
    color: var(--rj-brand);
    font-weight: 600;
}
