:root {
    color-scheme: light;
    --portal-page-bg: #f4f7fb;
    --portal-surface: #ffffff;
    --portal-surface-alt: #f8fbfd;
    --portal-surface-soft: rgba(15, 107, 158, 0.06);
    --portal-border: rgba(3, 43, 74, 0.08);
    --portal-text: #0f1e2e;
    --portal-text-soft: #64748b;
    --portal-topbar-start: #032b4a;
    --portal-topbar-end: #0f6c9b;
    --portal-sidebar-bg: #ffffff;
    --portal-sidebar-surface: #f8fbfd;
    --portal-sidebar-text: #1f2937;
    --portal-sidebar-muted: #64748b;
    --portal-sidebar-active-bg: rgba(15, 107, 158, 0.10);
    --portal-sidebar-active-text: #0f6b9e;
    --portal-sidebar-hover-bg: rgba(15, 107, 158, 0.12);
    --portal-radius-card: 0.95rem;
    --portal-radius-control: 0.75rem;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --portal-page-bg: #0b1220;
    --portal-surface: #111827;
    --portal-surface-alt: #0f172a;
    --portal-surface-soft: rgba(255, 255, 255, 0.04);
    --portal-border: rgba(148, 163, 184, 0.16);
    --portal-text: #e5eefc;
    --portal-text-soft: #94a3b8;
    --portal-topbar-start: #0a1f35;
    --portal-topbar-end: #0f3d63;
    --portal-sidebar-bg: #061524;
    --portal-sidebar-surface: rgba(255, 255, 255, 0.04);
    --portal-sidebar-text: rgba(255, 255, 255, 0.92);
    --portal-sidebar-muted: rgba(255, 255, 255, 0.58);
    --portal-sidebar-active-bg: rgba(255, 255, 255, 0.08);
    --portal-sidebar-active-text: #ffffff;
    --portal-sidebar-hover-bg: rgba(255, 255, 255, 0.10);
}

body {
    background: var(--portal-page-bg) !important;
    font-family: "Outfit", "Inter", sans-serif;
    color: var(--portal-text);
}

.content-page {
    background: var(--portal-page-bg);
}

.topbar-custom {
    background: linear-gradient(180deg, rgba(8, 26, 43, 0.96) 0%, rgba(12, 42, 68, 0.96) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(3, 43, 74, 0.18);
    color: #fff;
}

.topbar-custom .nav-link,
.topbar-custom .pro-user-name,
.topbar-custom .noti-icon,
.topbar-custom .button-toggle-menu {
    color: #f5f7fb !important;
}

.topbar-custom .dropdown-menu {
    border-radius: 1rem;
    border-color: var(--portal-border);
    box-shadow: 0 20px 60px rgba(3, 43, 74, 0.15);
    background: var(--portal-surface);
    color: var(--portal-text);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    min-height: 38px;
    padding: 0.38rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(2, 14, 31, 0.10);
    color: inherit;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.theme-toggle-btn:focus {
    box-shadow: none;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.theme-toggle-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    flex: 0 0 auto;
}

.theme-toggle-icon {
    width: 0.92rem;
    height: 0.92rem;
    display: none;
}

.theme-toggle-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    min-width: 0;
}

.theme-toggle-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffffff;
    white-space: nowrap;
}

.theme-toggle-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

html[data-theme="dark"] .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 22px rgba(2, 14, 31, 0.20);
}

html[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(148, 163, 184, 0.32);
}

html[data-theme="dark"] .theme-toggle-icon-wrap {
    background: rgba(125, 211, 252, 0.14);
}

html[data-theme="dark"] .theme-toggle-icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle-icon-sun {
    display: inline-block;
}

html[data-theme="light"] .theme-toggle-icon-moon,
html:not([data-theme="dark"]) .theme-toggle-icon-moon {
    display: inline-block;
}

html[data-theme="light"] .theme-toggle-icon-sun,
html:not([data-theme="dark"]) .theme-toggle-icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle-title {
    color: #f8fafc;
}

html[data-theme="dark"] .theme-toggle-indicator {
    background: #7dd3fc;
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.14);
}

.app-sidebar-menu,
#sidebar-menu {
    background: var(--portal-sidebar-bg) !important;
    border-right: 1px solid var(--portal-border);
}

#sidebar-menu .logo-box {
    margin: 0.55rem 0.6rem 0.4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--portal-surface) 0%, var(--portal-sidebar-surface) 100%);
    border: 1px solid var(--portal-border);
    box-shadow: 0 8px 18px rgba(3, 43, 74, 0.05);
}

#sidebar-menu .logo-box .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#sidebar-menu .logo-sm {
    display: none !important;
}

#sidebar-menu .logo-lg {
    display: inline-flex !important;
}

#sidebar-menu .logo-box .logo-light {
    display: flex !important;
}

#sidebar-menu .logo-box .logo-dark {
    display: none !important;
}

html[data-theme="dark"] #sidebar-menu .logo-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--portal-border);
    box-shadow: 0 12px 28px rgba(3, 43, 74, 0.08);
}

html[data-theme="dark"] #sidebar-menu .logo-box .logo-light {
    display: none !important;
}

html[data-theme="dark"] #sidebar-menu .logo-box .logo-dark {
    display: flex !important;
}

#sidebar-menu .logo-box img {
    max-width: 100%;
    height: auto;
}

#sidebar-menu .logo-box .logo-sm img {
    max-height: 22px !important;
}

#sidebar-menu .logo-box .logo-lg img {
    max-height: 26px !important;
}

@media (max-width: 991.98px) {
    #sidebar-menu .logo-sm {
        display: inline-flex !important;
    }

    #sidebar-menu .logo-lg {
        display: none !important;
    }
}

#sidebar-menu #side-menu > li > a {
    color: var(--portal-sidebar-text);
    border-radius: 0.85rem;
    margin: 0.2rem 0.75rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.18s ease;
}

#sidebar-menu #side-menu > li > a:hover,
#sidebar-menu #side-menu > li > a:focus,
#sidebar-menu #side-menu > li > a.active,
#sidebar-menu #side-menu .tp-link:hover {
    background: linear-gradient(90deg, var(--portal-sidebar-active-bg), rgba(15, 107, 158, 0.02));
    color: var(--portal-sidebar-active-text);
    box-shadow: inset 0 0 0 1px rgba(15, 107, 158, 0.08);
}

#sidebar-menu .menu-title {
    color: var(--portal-sidebar-muted);
    font-weight: 700;
    letter-spacing: 0.10em;
    margin-top: 1.15rem;
    margin-bottom: 0.35rem;
}

.app-sidebar-menu .nav-second-level {
    padding-left: 0.55rem;
}

.app-sidebar-menu .nav-second-level a,
.app-sidebar-menu .nav-second-level button {
    display: block;
    width: 100%;
    padding: 0.45rem 0.85rem;
    border-radius: 11px;
    color: var(--portal-sidebar-text);
    background: transparent;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-sidebar-menu .nav-second-level a:hover,
.app-sidebar-menu .nav-second-level button:hover {
    color: var(--portal-sidebar-active-text);
    background: var(--portal-sidebar-hover-bg);
    transform: translateX(2px);
}

.app-sidebar-menu .nav-second-level a.is-active,
.app-sidebar-menu .nav-second-level button.is-active {
    color: var(--portal-sidebar-active-text);
    background: var(--portal-sidebar-active-bg);
    box-shadow: inset 0 0 0 1px rgba(79, 123, 237, 0.22);
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas,
.alert,
.table,
.list-group-item,
.form-control,
.form-select {
    background-color: var(--portal-surface);
    color: var(--portal-text);
    border-color: var(--portal-border);
}

.portal-form-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--portal-text);
}

.portal-form-control {
    border-radius: 14px;
    border: 1px solid var(--portal-border);
    box-shadow: none;
    padding: 0.78rem 0.95rem;
    color: var(--portal-text);
    background: var(--portal-surface);
}

.portal-form-control:focus {
    border-color: rgba(15, 107, 158, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(15, 107, 158, 0.08);
}

.profile-muted {
    color: var(--portal-text-soft);
}

.profile-empty {
    border: 1px dashed var(--portal-border);
    border-radius: 18px;
    background: var(--portal-surface-alt);
    padding: 1.25rem;
    color: var(--portal-text-soft);
}

.card {
    border-radius: 1.25rem;
    box-shadow: 0 24px 55px rgba(3, 43, 74, 0.08);
}

.table {
    color: var(--portal-text);
}

.table thead th,
.table td {
    border-color: var(--portal-border);
}

.form-control,
.form-select {
    border-radius: 0.95rem;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 107, 158, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(15, 107, 158, 0.12);
}

.btn-primary,
.btn-outline-primary:hover,
.btn-pink {
    background: linear-gradient(120deg, #e6332a, #ff6a49);
    border-color: transparent;
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--portal-topbar-end);
    color: var(--portal-topbar-end);
}

.btn-outline-primary:hover {
    color: #fff;
}

.badge.bg-success {
    background: #33d684 !important;
}

.bg-light-pink {
    background: rgba(230, 51, 42, 0.08);
}

.bg-light-purple {
    background: rgba(15, 108, 155, 0.08);
}

.bg-light-rose {
    background: rgba(3, 43, 74, 0.08);
}

.text-pink {
    color: #e6332a !important;
}

.text-purple {
    color: #0f6c9b !important;
}

.progress,
.list-inline,
.border-bottom {
    border-color: var(--portal-border) !important;
}

.portal-soft-card {
    background: linear-gradient(180deg, rgba(15, 107, 158, 0.06) 0%, var(--portal-surface) 100%);
}

.portal-stat-card {
    min-height: 122px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, var(--portal-surface) 100%);
    border: 1px solid var(--portal-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    border-radius: var(--portal-radius-card);
}

.portal-stat-card .portal-stat-value {
    font-size: 2rem;
    line-height: 1;
}

.portal-section-title {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--portal-text-soft);
}

.portal-muted {
    color: var(--portal-text-soft);
}

.portal-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--portal-radius-card);
    text-decoration: none;
    color: var(--portal-text);
    background: var(--portal-surface-alt);
    border: 1px solid var(--portal-border);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-quick-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 107, 158, 0.28);
}

.portal-quick-link .portal-quick-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.portal-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 0.8rem;
    background: rgba(15, 107, 158, 0.10);
    color: #0f6b9e;
    font-weight: 700;
    font-size: 0.8rem;
}

.portal-avatar {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid rgba(15, 107, 158, 0.10);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.portal-dashboard-heading,
.portal-page-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 18px;
    color: var(--portal-text);
}

.portal-page-subtitle {
    font-size: 1.04rem;
    color: var(--portal-text-soft);
}

.portal-card-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--portal-text);
}

.portal-field-label {
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--portal-text);
}

.portal-body-copy {
    font-size: 1.04rem;
}

.portal-note-text {
    font-size: 0.86rem;
    color: var(--portal-text-soft);
}

.portal-summary-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.portal-summary-note {
    font-size: 0.86rem;
}

.card {
    border-radius: var(--portal-radius-card);
}

.profile-empty {
    border-radius: var(--portal-radius-card);
}

.form-control,
.form-select {
    border-radius: var(--portal-radius-control);
}

.card,
.dropdown-menu,
.modal-content,
.offcanvas,
.alert,
.list-group-item,
.table {
    background-color: var(--portal-surface);
    color: var(--portal-text);
    border-color: var(--portal-border);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .alert,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .table {
    background-color: var(--portal-surface);
    color: var(--portal-text);
    border-color: var(--portal-border);
}

.dropdown-item {
    color: var(--portal-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--portal-surface-alt);
    color: var(--portal-text);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background-color: #0f172a;
    color: #e5eefc;
}

.form-control,
.form-select,
input,
select,
textarea {
    background-color: var(--portal-surface);
    color: var(--portal-text);
    border-color: var(--portal-border);
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    color: var(--portal-text-soft);
}

.table thead th {
    background-color: var(--portal-surface-alt);
    color: var(--portal-text-soft);
}

html[data-theme="dark"] .table thead th {
    background-color: #0f172a;
    color: #94a3b8;
}

.table tbody tr:hover {
    background-color: var(--portal-surface-alt);
}

html[data-theme="dark"] .table tbody tr:hover {
    background-color: #0f172a;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
    background-color: var(--portal-surface);
    color: var(--portal-text);
    border-color: var(--portal-border);
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    background-color: rgba(15, 107, 158, 0.10);
    color: var(--portal-sidebar-active-text);
    border-color: rgba(15, 107, 158, 0.18);
}

html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-theme="dark"] .nav-pills .nav-link.active {
    background-color: rgba(125, 211, 252, 0.14);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.20);
}

.simplebar-content,
.simplebar-mask {
    background: transparent;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 107, 158, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(230, 51, 42, 0.10), transparent 22%),
        linear-gradient(180deg, var(--portal-page-bg) 0%, var(--portal-page-bg) 100%);
    color: var(--portal-text);
}

body.auth-page .auth-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.55rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--portal-border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--portal-text);
    box-shadow: 0 14px 32px rgba(3, 43, 74, 0.10);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] body.auth-page .auth-theme-toggle {
    background: rgba(15, 23, 42, 0.72);
    color: #e5eefc;
}

body.auth-page .auth-theme-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(15, 107, 158, 0.10);
    color: #0f6b9e;
    font-size: 0.95rem;
}

html[data-theme="dark"] body.auth-page .auth-theme-toggle__icon {
    background: rgba(125, 211, 252, 0.12);
    color: #7dd3fc;
}

body.auth-page .auth-shell {
    width: min(1220px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5.75rem 0 3rem;
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

body.auth-page .auth-shell--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
}

body.auth-page .auth-shell--single {
    grid-template-columns: minmax(0, 540px);
    justify-content: center;
}

body.auth-page .auth-hero,
body.auth-page .auth-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--portal-border);
    box-shadow: 0 24px 60px rgba(3, 43, 74, 0.12);
}

body.auth-page .auth-hero {
    padding: 2rem;
    min-height: 100%;
    color: #f8fbff;
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(251, 146, 60, 0.14), transparent 20%),
        linear-gradient(145deg, #032b4a 0%, #0f6b9e 55%, #0b4d73 100%);
}

body.auth-page .auth-hero::before,
body.auth-page .auth-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
}

body.auth-page .auth-hero::before {
    width: 11rem;
    height: 11rem;
    right: -3rem;
    top: -2.5rem;
    background: rgba(255, 255, 255, 0.07);
    filter: blur(2px);
}

body.auth-page .auth-hero::after {
    width: 18rem;
    height: 18rem;
    left: -7rem;
    bottom: -7rem;
    background: rgba(255, 255, 255, 0.05);
}

body.auth-page .auth-hero > * {
    position: relative;
    z-index: 1;
}

body.auth-page .auth-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

body.auth-page .auth-hero__mark {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    flex: 0 0 auto;
}

body.auth-page .auth-hero__badge strong,
body.auth-page .auth-hero__title,
body.auth-page .auth-card__title {
    color: inherit;
}

body.auth-page .auth-hero__badge-copy {
    margin-top: 0.22rem;
    font-size: 0.82rem;
    color: rgba(248, 251, 255, 0.74);
    letter-spacing: 0.02em;
}

body.auth-page .auth-hero__title {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.auth-page .auth-hero__copy {
    margin: 1rem 0 0;
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(248, 251, 255, 0.82);
}

body.auth-page .auth-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

body.auth-page .auth-point {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

body.auth-page .auth-point__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 251, 255, 0.68);
}

body.auth-page .auth-point__value {
    display: block;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(248, 251, 255, 0.95);
}

body.auth-page .auth-hero__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

body.auth-page .auth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.auth-page .auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.35rem, 2vw, 2rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--portal-surface) 100%);
}

html[data-theme="dark"] body.auth-page .auth-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.94) 100%);
}

body.auth-page .auth-card__header {
    margin-bottom: 0.65rem;
}

body.auth-page .auth-card__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f6b9e;
}

html[data-theme="dark"] body.auth-page .auth-card__eyebrow {
    color: #7dd3fc;
}

body.auth-page .auth-card__title {
    margin: 0;
    font-size: clamp(1.7rem, 2.3vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

body.auth-page .auth-card__text {
    margin: 0.7rem 0 0;
    color: var(--portal-text-soft);
    line-height: 1.65;
}

body.auth-page .auth-status,
body.auth-page .auth-alert,
body.auth-page .auth-note,
body.auth-page .auth-card__note,
body.auth-page .auth-code-chip {
    border-radius: 1rem;
    border: 1px solid var(--portal-border);
    background: var(--portal-surface-alt);
    color: var(--portal-text);
}

body.auth-page .auth-status,
body.auth-page .auth-alert {
    padding: 0.9rem 1rem;
    font-weight: 600;
}

body.auth-page .auth-alert {
    background: rgba(230, 51, 42, 0.08);
    border-color: rgba(230, 51, 42, 0.18);
    color: #a42323;
}

html[data-theme="dark"] body.auth-page .auth-alert {
    color: #fecaca;
}

body.auth-page .auth-note,
body.auth-page .auth-card__note {
    padding: 1rem;
    line-height: 1.65;
    color: var(--portal-text-soft);
}

body.auth-page .auth-code-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    color: var(--portal-text-soft);
}

body.auth-page .auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 0.35rem;
}

body.auth-page .field {
    display: grid;
    gap: 0.45rem;
}

body.auth-page .field__label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--portal-text);
}

body.auth-page .field__input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

body.auth-page .field__input {
    width: 100%;
    min-height: 3.05rem;
    padding: 0.82rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid var(--portal-border);
    background: var(--portal-surface);
    color: var(--portal-text);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.auth-page .field__input::placeholder {
    color: var(--portal-text-soft);
}

body.auth-page .field__input:focus {
    border-color: rgba(15, 107, 158, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(15, 107, 158, 0.11);
    outline: none;
}

body.auth-page .field__input-wrap .field__input {
    padding-right: 4.9rem;
}

body.auth-page .field__password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.1rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid var(--portal-border);
    background: var(--portal-surface-alt);
    color: var(--portal-text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

body.auth-page .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

body.auth-page .remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--portal-text-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

body.auth-page .remember input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

body.auth-page .link {
    color: #0f6b9e;
    font-weight: 700;
    text-decoration: none;
}

html[data-theme="dark"] body.auth-page .link {
    color: #7dd3fc;
}

body.auth-page .link:hover {
    text-decoration: underline;
}

body.auth-page .primary-button,
body.auth-page .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

body.auth-page .primary-button {
    background: linear-gradient(120deg, #0f6b9e 0%, #0b4d73 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 107, 158, 0.25);
}

body.auth-page .primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 107, 158, 0.30);
}

body.auth-page .secondary-button {
    background: transparent;
    border-color: rgba(15, 107, 158, 0.28);
    color: #0f6b9e;
}

html[data-theme="dark"] body.auth-page .secondary-button {
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.28);
}

body.auth-page .secondary-button:hover {
    background: rgba(15, 107, 158, 0.08);
}

body.auth-page .error-text {
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 600;
}

html[data-theme="dark"] body.auth-page .error-text {
    color: #fda4af;
}

@media (max-width: 991.98px) {
    .portal-avatar {
        width: 64px;
        height: 64px;
    }

    body.auth-page .auth-shell {
        padding-top: 4.8rem;
    }

    body.auth-page .auth-shell--split {
        grid-template-columns: minmax(0, 1fr);
    }

    body.auth-page .auth-hero {
        min-height: auto;
    }

    body.auth-page .auth-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body.auth-page .auth-shell {
        width: min(100%, calc(100% - 1rem));
        padding-top: 4.4rem;
        padding-bottom: 1rem;
    }

    body.auth-page .auth-hero,
    body.auth-page .auth-card {
        border-radius: 1.15rem;
    }

    body.auth-page .auth-hero,
    body.auth-page .auth-card {
        padding: 1.25rem;
    }

    body.auth-page .auth-row {
        align-items: stretch;
    }

    body.auth-page .auth-row .primary-button,
    body.auth-page .auth-row .secondary-button,
    body.auth-page .auth-row .link {
        width: 100%;
    }

    body.auth-page .auth-theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
}
