@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --auth-hero-night-rgb: 11, 57, 80;
    --auth-hero-ink-rgb: 19, 100, 136;
    --auth-blue-rgb: 55, 166, 216;
    --auth-orange-rgb: 222, 115, 54;
    --auth-text: #ffffff;
    --auth-ink: #10384d;
    --auth-muted: rgba(255, 255, 255, 0.84);
    --auth-card-bg: rgba(235, 247, 252, 0.14);
    --auth-card-border: rgba(255, 255, 255, 0.22);
    --auth-card-shadow: 0 34px 90px rgba(3, 25, 39, 0.34);
    --auth-input-bg: rgba(244, 250, 253, 0.16);
    --auth-input-border: rgba(255, 255, 255, 0.18);
    --auth-input-divider: rgba(16, 56, 77, 0.18);
    --auth-input-text: #17394d;
    --auth-input-placeholder: rgba(23, 57, 77, 0.88);
    --auth-accent: #de7336;
    --auth-accent-hover: #c85f2a;
    --auth-link: #ffffff;
    --auth-danger-bg: rgba(147, 28, 28, 0.18);
    --auth-danger-border: rgba(255, 255, 255, 0.14);
    --auth-danger-text: #fff0f0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.auth-page {
    color: var(--auth-text);
    background:
        linear-gradient(rgba(var(--auth-hero-night-rgb), 0.86), rgba(var(--auth-hero-ink-rgb), 0.78)),
        url("../images/hero-background.webp") center / cover no-repeat,
        #0b3950;
    position: relative;
    overflow-x: hidden;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.auth-page::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.00)),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14), transparent 26%),
        radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.10), transparent 24%);
    opacity: 0.86;
}

.auth-page::after {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 32%);
    mix-blend-mode: soft-light;
}

.auth-page a {
    color: var(--auth-link);
    font-weight: 700;
    text-decoration: none;
}

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

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 32px 20px 22px;
}

.auth-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    position: relative;
    width: min(100%, 448px);
    padding: 44px 34px 32px;
    border-radius: 24px;
    border: 1px solid var(--auth-card-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08)),
        var(--auth-card-bg);
    box-shadow: var(--auth-card-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}

.auth-card::before,
.auth-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-card::before {
    top: -84px;
    right: -76px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.auth-card::after {
    left: -60px;
    bottom: -72px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(var(--auth-orange-rgb), 0.18), transparent 72%);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.auth-brand__logo {
    height: 68px;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 22px rgba(12, 71, 105, 0.20));
}

.auth-brand__copy {
    min-width: 0;
}

.auth-kicker {
    padding-left: 1.5px;
    margin: 0 0 2px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.auth-brand h1 {
    margin: 0;
    font-size: clamp(2rem, 2.1vw, 2.4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.auth-subtitle {
    margin: 10px 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.auth-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.auth-field {
    display: block;
    min-width: 0;
}

.auth-input {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    border-radius: 14px;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 24px rgba(3, 25, 39, 0.10);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-input--password {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
}

.auth-input:focus-within {
    transform: translateY(-1px);
    background: rgba(249, 252, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        0 0 0 4px rgba(var(--auth-orange-rgb), 0.18),
        0 14px 28px rgba(3, 25, 39, 0.14);
}

.auth-input__icon {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-input-text);
    border-right: 1px solid var(--auth-input-divider);
}

.auth-input__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.auth-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--auth-input-text);
}

.auth-input input::placeholder {
    color: var(--auth-input-placeholder);
}

.auth-password-toggle {
    height: 100%;
    min-width: 48px;
    border: 0;
    border-left: 1px solid var(--auth-input-divider);
    background: transparent;
    color: var(--auth-input-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.auth-password-toggle:hover {
    background: rgba(255, 255, 255, 0.10);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.22);
    outline-offset: -2px;
}

.auth-password-toggle__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.auth-password-toggle__icon--hide {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--show {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--hide {
    display: block;
}

.auth-button {
    margin-top: 10px;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #e78945 0%, var(--auth-accent) 100%);
    color: #ffffff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(var(--auth-orange-rgb), 0.30);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #e07f3b 0%, var(--auth-accent-hover) 100%);
    box-shadow: 0 20px 38px rgba(var(--auth-orange-rgb), 0.34);
}

.auth-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.18);
    outline-offset: 2px;
}

.auth-links {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    text-align: center;
}

.auth-links p {
    margin: 0;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.82);
}

.auth-note {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.80);
}

.auth-footer {
    text-align: center;
    padding-top: 16px;
}

.auth-footer p {
    margin: 0;
    font-size: clamp(0.92rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.90);
}

.alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--auth-danger-border);
    background: var(--auth-danger-bg);
    color: var(--auth-danger-text);
    font-size: 0.88rem;
    line-height: 1.5;
}

.alert-success {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(25, 110, 63, 0.2);
    color: #f2fff5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-page {
    color: #14273b;
    background:
        radial-gradient(circle at top left, rgba(55, 166, 216, 0.12), transparent 28%),
        linear-gradient(180deg, #f4f8fb 0%, #edf4f8 100%);
}

.dashboard-page a {
    color: inherit;
    text-decoration: none;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.dashboard-sidebar {
    position: relative;
    background:
        linear-gradient(180deg, rgba(11, 57, 80, 0.97), rgba(19, 100, 136, 0.92)),
        url("../images/hero-background.webp") center / cover no-repeat;
    border-right: 1px solid rgba(15, 39, 64, 0.10);
    overflow: hidden;
}

.dashboard-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.00) 26%),
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(135, 189, 93, 0.14), transparent 34%);
}

.dashboard-sidebar__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 20px;
}

.dashboard-sidebar__brandmark {
    display: none;
}

.dashboard-nav {
    display: grid;
    gap: 0;
    margin-inline: -16px;
}

.dashboard-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    background: transparent;
    box-shadow: none;
    transition: background-color 180ms ease, color 180ms ease, padding-left 180ms ease;
}

.dashboard-nav__icon,
.dashboard-nav__subicon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.dashboard-nav__icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.dashboard-nav__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dashboard-nav__subicon {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.dashboard-nav__subicon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.dashboard-nav__item:hover,
.dashboard-nav__item:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    padding-left: 20px;
    outline: none;
}

.dashboard-nav__item.is-active {
    color: #ffffff;
    background: rgba(55, 166, 216, 0.10);
    box-shadow: inset 3px 0 0 #37a6d8;
}

.dashboard-nav__text {
    font-size: 1rem;
    line-height: 1.2;
    flex: 1 1 auto;
    color: inherit;
}

.dashboard-nav__dropdown summary {
    list-style: none;
    cursor: pointer;
}

.dashboard-nav__dropdown summary::-webkit-details-marker {
    display: none;
}

.dashboard-nav__item--dropdown {
    position: relative;
}

.dashboard-nav__dropdown[open] .dashboard-nav__item--dropdown {
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-nav__chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
    margin-left: auto;
}

.dashboard-nav__dropdown[open] .dashboard-nav__chevron {
    transform: rotate(225deg);
}

.dashboard-nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.dashboard-nav__submenu li {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-nav__submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px 0 46px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease, padding-left 180ms ease;
}

.dashboard-nav__submenu a:hover,
.dashboard-nav__submenu a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    padding-left: 50px;
    outline: none;
}

.dashboard-sidebar__footer {
    margin-top: auto;
    padding: 18px 16px;
    border-radius: 20px;
    background: rgba(7, 35, 50, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px rgba(4, 25, 39, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dashboard-sidebar__label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.dashboard-sidebar__user {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.dashboard-sidebar__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ed8d48 0%, #de7336 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(222, 115, 54, 0.24);
}

.dashboard-main {
    min-width: 0;
    padding: 14px 14px 20px;
}

.dashboard-contactbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #0b3950, #136488 55%, #0b3950);
    color: #ffffff;
    font-size: 0.88rem;
    box-shadow: 0 16px 28px rgba(11, 57, 80, 0.12);
}

.dashboard-contactbar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-contactbar svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 39, 64, 0.08);
    border-top: 0;
    box-shadow: 0 18px 34px rgba(9, 24, 41, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.dashboard-brand__logo {
    width: auto;
    height: 68px;
    flex: 0 0 auto;
}

.dashboard-brand__copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 0.95;
    font-weight: 800;
}

.dashboard-brand__copy h1 span {
    color: #de7336;
}

.dashboard-brand__copy h1 em {
    color: #37a6d8;
    font-style: normal;
}

.dashboard-brand__copy p {
    margin: 6px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #87bd5d;
}

.dashboard-topbar__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.dashboard-search {
    min-width: min(100%, 360px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 52px;
    border-radius: 18px;
    background: #f5f8fb;
    border: 1px solid rgba(15, 39, 64, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dashboard-search__icon {
    width: 18px;
    height: 18px;
    color: #6b91aa;
    flex: 0 0 auto;
}

.dashboard-search__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dashboard-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #295066;
    font: inherit;
}

.dashboard-search input::placeholder {
    color: #82a1b4;
}

.dashboard-userchip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 14px;
    border-radius: 18px;
    background: #ffffff;
    color: #20475d;
    border: 1px solid rgba(15, 39, 64, 0.08);
    box-shadow: 0 12px 24px rgba(9, 24, 41, 0.06);
}

.dashboard-userchip__status {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #87bd5d;
    box-shadow: 0 0 0 4px rgba(135, 189, 93, 0.16);
}

.dashboard-userchip__copy {
    display: grid;
    gap: 2px;
}

.dashboard-userchip__copy strong {
    font-size: 0.94rem;
    line-height: 1.1;
}

.dashboard-userchip__copy span {
    font-size: 0.75rem;
    color: #6f8ea3;
}

.dashboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #de7336, #37a6d8);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dashboard-ribbon {
    margin: 10px 0 4px;
    background-size: 100% 100%;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top:10px ;
}

.dashboard-stat {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 39, 64, 0.08);
    box-shadow: 0 16px 32px rgba(9, 24, 41, 0.08);
    overflow: hidden;
}

.dashboard-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
}

.dashboard-stat--blue::before {
    background: #37a6d8;
}

.dashboard-stat--green::before {
    background: #87bd5d;
}

.dashboard-stat--orange::before {
    background: #de7336;
}

.dashboard-stat--teal::before {
    background: #136488;
}

.dashboard-stat__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dashboard-stat--blue .dashboard-stat__icon {
    background: linear-gradient(135deg, #4cb5e4, #2e90c3);
}

.dashboard-stat--green .dashboard-stat__icon {
    background: linear-gradient(135deg, #9acb69, #6aa63c);
}

.dashboard-stat--orange .dashboard-stat__icon {
    background: linear-gradient(135deg, #f0903b, #de7336);
}

.dashboard-stat--teal .dashboard-stat__icon {
    background: linear-gradient(135deg, #2da8bf, #136488);
}

.dashboard-stat__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.dashboard-stat__content p,
.dashboard-stat__content span {
    margin: 0;
}

.dashboard-stat__content p {
    font-size: 0.92rem;
    font-weight: 700;
    color: #4b6174;
}

.dashboard-stat__content strong {
    display: block;
    margin-top: 4px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #0f2740;
}

.dashboard-stat__content span {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    color: #71879a;
}

.dashboard-hero {
    position: relative;
    margin-top: 12px;
    padding: 82px 32px 92px;
    border-radius: 26px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(11, 57, 80, 0.90) 0%, rgba(19, 100, 136, 0.84) 54%, rgba(55, 166, 216, 0.58) 100%),
        url("../images/hero-background.webp") center / cover no-repeat;
    box-shadow: 0 24px 48px rgba(9, 24, 41, 0.18);
}

.dashboard-hero::before,
.dashboard-hero::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.dashboard-hero::before {
    transform: rotate(180deg);
    top: -2px;
    height: 112px;
    background-image: url("../images/wave.webp");
}

.dashboard-hero::after {
    bottom: -2px;
    height: 128px;
    background-image: url("../images/wave.webp");
}

.dashboard-hero__content {
    margin: 30px 0px;
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.dashboard-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 14px;
    padding: 0.52rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dfeeff;
}

.dashboard-hero h2 {
    margin: 0;
    font-size: clamp(2.55rem, 4.4vw, 4.6rem);
    line-height: 1.02;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.dashboard-hero h2 span {
    color: #de7336;
}

.dashboard-hero p:last-of-type {
    margin: 14px 0 0;
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(240, 247, 255, 0.86);
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.dashboard-button:hover,
.dashboard-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.dashboard-button--primary,
.dashboard-button--small {
    background: linear-gradient(180deg, #ed8d48 0%, #de7336 100%);
    color: #ffffff;
    box-shadow: 0 16px 26px rgba(222, 115, 54, 0.26);
}

.dashboard-button--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.dashboard-button--small {
    min-height: 38px;
    padding-inline: 18px;
    font-size: 0.82rem;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 1.05fr 1.3fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.dashboard-panel {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 39, 64, 0.08);
    box-shadow: 0 18px 34px rgba(9, 24, 41, 0.08);
}

.dashboard-panel__header,
.dashboard-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-panel__header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2740;
}

.dashboard-panel__header a,
.dashboard-link {
    font-size: 0.8rem;
    font-weight: 800;
    color: #136488;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.dashboard-donut {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #ffffff 0 35%, transparent 36%),
        conic-gradient(#37a6d8 0 16%, #87bd5d 16% 86%, #de7336 86% 100%);
    box-shadow:
        inset 0 0 0 14px rgba(15, 39, 64, 0.04),
        0 18px 28px rgba(9, 24, 41, 0.10);
}

.dashboard-donut__inner {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #0f2740;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(15, 39, 64, 0.08);
}

.dashboard-overview__stats {
    display: grid;
    gap: 14px;
}

.dashboard-overview__stats div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dashboard-overview__stats strong {
    font-size: 2rem;
    line-height: 1;
    color: #0f2740;
}

.dashboard-overview__stats span {
    font-size: 0.95rem;
    color: #64748b;
}

.dashboard-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
}

.dashboard-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-legend__item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dashboard-legend__item--blue::before {
    background: #37a6d8;
}

.dashboard-legend__item--green::before {
    background: #87bd5d;
}

.dashboard-legend__item--orange::before {
    background: #de7336;
}

.dashboard-activity {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.dashboard-activity__item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.dashboard-activity__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ed8d48, #37a6d8);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.dashboard-activity__item strong,
.dashboard-activity__item span {
    display: block;
}

.dashboard-activity__item strong {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #0f2740;
}

.dashboard-activity__item span {
    margin-top: 4px;
    font-size: 0.76rem;
    color: #71879a;
}

.dashboard-chart {
    position: relative;
    height: 128px;
    margin-top: 14px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(55, 166, 216, 0.10), rgba(55, 166, 216, 0.00)),
        repeating-linear-gradient(to right, rgba(55, 166, 216, 0.08) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(to top, rgba(15, 39, 64, 0.06) 0 1px, transparent 1px 32px),
        #f5f9fc;
    border: 1px solid rgba(55, 166, 216, 0.14);
}

.dashboard-chart__line,
.dashboard-chart__fill {
    position: absolute;
    inset: auto 0 0;
    height: 100%;
}

.dashboard-chart__fill {
    background: linear-gradient(180deg, rgba(55, 166, 216, 0.28), rgba(55, 166, 216, 0.02));
    clip-path: polygon(0% 78%, 12% 70%, 25% 62%, 37% 58%, 50% 46%, 63% 51%, 76% 36%, 88% 30%, 100% 18%, 100% 100%, 0% 100%);
}

.dashboard-chart__line {
    background: linear-gradient(90deg, rgba(222, 115, 54, 0.96), rgba(222, 115, 54, 0.96));
    height: 3px;
    top: auto;
    bottom: 0;
    clip-path: polygon(0% 78%, 12% 70%, 25% 62%, 37% 58%, 50% 46%, 63% 51%, 76% 36%, 88% 30%, 100% 18%, 100% 22%, 88% 34%, 76% 40%, 63% 55%, 50% 50%, 37% 62%, 25% 66%, 12% 74%, 0% 82%);
}

.dashboard-chart__metrics {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    gap: 4px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-chart__metrics span:first-child {
    color: #0f2740;
}

.dashboard-chart__metrics span:last-child {
    color: #6aa63c;
}

.dashboard-tasks {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 12px;
}

.dashboard-tasks li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 39, 64, 0.08);
}

.dashboard-tasks label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 0.9rem;
    color: #1f3447;
}

.dashboard-tasks input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #37a6d8;
}

.dashboard-tasks span {
    display: block;
}

.dashboard-tag {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.dashboard-tag--blue {
    background: rgba(55, 166, 216, 0.92);
}

.dashboard-tag--yellow {
    background: rgba(246, 188, 89, 0.96);
}

.dashboard-tag--orange {
    background: rgba(222, 115, 54, 0.94);
}

.dashboard-tag--red {
    background: rgba(222, 74, 74, 0.92);
}

.dashboard-tag--teal {
    background: rgba(19, 100, 136, 0.92);
}

.dashboard-panel__footer {
    margin-top: 14px;
}

@media (max-width: 860px) {
    .auth-page {
        background:
            linear-gradient(rgba(var(--auth-hero-night-rgb), 0.88), rgba(var(--auth-hero-ink-rgb), 0.80)),
            url("../images/hero-background.webp") center center / cover no-repeat,
            #0b3950;
    }

    .auth-page::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
    }
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 18px 14px 16px;
    }

    .auth-card {
        width: 100%;
        padding: 30px 18px 24px;
        border-radius: 18px;
    }

    .auth-brand {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 22px;
    }

    .auth-brand__logo {
        width: auto;
        height: 50px;
    }

    .auth-brand h1 {
        font-size: 1.55rem;
        line-height: 1.05;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .auth-input {
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 54px;
    }

    .auth-input--password {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .auth-input input {
        padding: 0 12px;
        font-size: 0.92rem;
    }

    .auth-password-toggle {
        min-width: 44px;
    }

    .auth-button {
        min-height: 50px;
        font-size: 0.95rem;
    }

    .auth-footer p {
        font-size: 0.84rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .auth-shell {
        padding-inline: 10px;
    }

    .auth-card {
        padding: 24px 14px 20px;
    }

    .auth-brand {
        gap: 10px;
    }

    .auth-brand__logo {
        height: 42px;
    }

    .auth-brand h1 {
        font-size: 1.36rem;
    }

    .auth-kicker {
        font-size: 0.66rem;
    }

    .auth-subtitle {
        font-size: 0.84rem;
    }

    .auth-input {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 50px;
        border-radius: 12px;
    }

    .auth-input--password {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .auth-input__icon svg,
    .auth-password-toggle__icon {
        width: 16px;
        height: 16px;
    }

    .auth-password-toggle {
        min-width: 40px;
    }

    .auth-note {
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1180px) {
    .dashboard-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .dashboard-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-panel--tasks {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(137, 207, 242, 0.12);
    }

    .dashboard-sidebar__inner {
        padding: 18px 18px 20px;
        gap: 16px;
    }

    .dashboard-sidebar__brandmark {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(10, 48, 70, 0.7);
        border: 1px solid rgba(133, 212, 245, 0.12);
    }

    .dashboard-sidebar__brandicon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(240, 160, 45, 0.94), rgba(46, 155, 213, 0.94));
    }

    .dashboard-sidebar__brandicon svg {
        width: 22px;
        height: 22px;
        fill: #ffffff;
    }

    .dashboard-sidebar__brandmark p,
    .dashboard-sidebar__brandmark span {
        display: block;
    }

    .dashboard-sidebar__brandmark p {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 800;
        color: #ffffff;
    }

    .dashboard-sidebar__brandmark span {
        margin-top: 3px;
        font-size: 0.78rem;
        color: rgba(199, 231, 248, 0.72);
    }

    .dashboard-sidebar__footer {
        margin-top: 0;
    }

    .dashboard-contactbar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
        min-height: 48px;
        padding-block: 8px;
    }

    .dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-topbar__tools {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-search {
        min-width: 0;
        flex: 1;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dashboard-main {
        padding: 12px 12px 18px;
    }

    .dashboard-brand {
        align-items: flex-start;
    }

    .dashboard-brand__logo {
        height: 48px;
    }

    .dashboard-brand__copy h1 {
        font-size: 1.9rem;
    }

    .dashboard-brand__copy p {
        font-size: 0.82rem;
    }

    .dashboard-topbar__tools {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-contactbar {
        border-radius: 16px 16px 0 0;
        font-size: 0.8rem;
    }

    .dashboard-topbar {
        padding: 14px;
        border-radius: 0 0 20px 20px;
    }

    .dashboard-userchip {
        justify-content: space-between;
    }

    .dashboard-stats,
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .dashboard-nav__submenu {
        margin-left: 0;
        padding: 10px 14px 10px 22px;
    }

    .dashboard-hero {
        padding: 64px 20px 72px;
    }

    .dashboard-hero::before {
        height: 86px;
    }

    .dashboard-hero::after {
        height: 96px;
    }

    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-tasks li,
    .dashboard-panel__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
