body.auth-page {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 122, 113, 0.18), transparent 32%),
        linear-gradient(135deg, #eef5f3 0%, #f8fbfa 55%, #edf6f5 100%);
    color: #16302d;
}

.auth-shell {
    min-height: 100vh;
    padding: 30px 15px;
}

.auth-layout {
    min-height: calc(100vh - 60px);
}

.auth-layout__hero-col,
.auth-layout__form-col {
    padding-left: 15px;
    padding-right: 15px;
}

.auth-hero,
.auth-panel {
    min-height: calc(100vh - 60px);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 60px;
    background:
        linear-gradient(135deg, rgba(7, 64, 60, 0.92), rgba(26, 107, 101, 0.88)),
        url("../images/account-bgc.jpg") center center / cover no-repeat;
    box-shadow: 0 24px 60px rgba(11, 61, 58, 0.18);
}

.auth-hero:before,
.auth-hero:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-hero:before {
    width: 260px;
    height: 260px;
    top: -70px;
    right: -60px;
}

.auth-hero:after {
    width: 180px;
    height: 180px;
    bottom: 35px;
    left: -50px;
}

.auth-hero__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    color: #fff;
    padding-top: 30px;
}

.auth-hero__eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-hero__title {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
}

.auth-hero__lead {
    margin: 0;
    max-width: 520px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.auth-metrics {
    margin-top: 42px;
}

.auth-metric {
    min-height: 150px;
    margin-bottom: 20px;
    padding: 24px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-metric__value,
.auth-metric__label {
    display: block;
}

.auth-metric__value {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.auth-metric__label {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.auth-brand,
.auth-card {
    width: 100%;
}

.auth-brand {
    margin-bottom: 26px;
}

.auth-panel > .auth-brand,
.auth-panel > .auth-card {
    display: block;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto;
}

.auth-brand__logo {
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(11, 61, 58, 0.12);
    object-fit: contain;
}

.auth-brand__kicker {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a6b65;
}

.auth-brand__title {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: #0b3d3a;
}

.auth-brand__copy {
    margin: 12px auto 0;
    max-width: 380px;
    font-size: 15px;
    line-height: 1.8;
    color: #5b6f6c;
}

.auth-card {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(11, 61, 58, 0.12);
}

.auth-card__body {
    padding: 34px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form__label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #33514d;
}

.auth-input-group {
    border: 1px solid #d7e5e2;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fbfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input-group:focus-within {
    border-color: #1a6b65;
    box-shadow: 0 0 0 4px rgba(26, 107, 101, 0.12);
    background: #fff;
}

.auth-input-group .input-group-addon {
    border: 0;
    padding: 0 16px;
    background: transparent;
    color: #6a8380;
    font-size: 15px;
}

.auth-form__control.form-control {
    height: 54px;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 15px;
    color: #173532;
}

.auth-form__control.form-control:focus {
    box-shadow: none;
}

.auth-form__submit.btn {
    height: 54px;
    margin-top: 10px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b3d3a 0%, #1a6b65 100%);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 18px 35px rgba(11, 61, 58, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-form__submit.btn:hover,
.auth-form__submit.btn:focus {
    background: linear-gradient(135deg, #0f4b47 0%, #227972 100%);
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(11, 61, 58, 0.22);
}

.auth-demo {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f2f7f6;
    color: #4e6461;
    font-size: 14px;
    line-height: 1.7;
}

.auth-demo__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a6b65;
}

@media (max-width: 991px) {
    .auth-shell {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .auth-layout,
    .auth-panel {
        min-height: auto;
    }

    .auth-brand {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    body.auth-page {
        background: linear-gradient(180deg, #f3f8f7 0%, #eef5f3 100%);
    }

    .auth-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .auth-brand__title {
        font-size: 28px;
    }

    .auth-brand__copy {
        font-size: 14px;
    }

    .auth-card__body {
        padding: 24px 20px;
    }
}

body.backend-page {
    background: #edf5f3;
    color: #1f312f;
}

body.backend-page .page-content {
    background:
        radial-gradient(circle at top right, rgba(26, 107, 101, 0.08), transparent 22%),
        linear-gradient(180deg, #f5faf8 0%, #edf5f3 100%);
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border: 1px solid #dbe7e4;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfa 100%);
    box-shadow: 0 18px 42px rgba(11, 61, 58, 0.08);
}

.page-hero:before {
    content: "";
    position: absolute;
    top: -30px;
    right: -20px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 107, 101, 0.12) 0%, rgba(26, 107, 101, 0) 70%);
}

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

.page-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e7f4f1;
    color: #1a6b65;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.18;
    font-weight: 700;
    color: #0b3d3a;
}

.page-copy {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: #5f7370;
}

.page-chip-set {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.page-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d7e7e3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #42625e;
    font-size: 13px;
    line-height: 1.5;
}

.page-chip strong {
    color: #163c38;
}

.metric-card {
    height: 100%;
    padding: 22px 20px;
    border: 1px solid #dbe8e5;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
    box-shadow: 0 14px 34px rgba(11, 61, 58, 0.06);
}

.metric-card__label,
.metric-card__hint {
    display: block;
}

.metric-card__label {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a817d;
}

.metric-card__value {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    color: #0b3d3a;
}

.metric-card__hint {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #6a817d;
}

.app-card {
    border: 1px solid #dbe8e5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(11, 61, 58, 0.08);
    overflow: hidden;
}

.app-card + .app-card {
    margin-top: 24px;
}

.app-card__header {
    padding: 24px 24px 0;
}

.app-card__body {
    padding: 24px;
}

.app-card__footer {
    padding: 0 24px 24px;
}

.app-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #123e3a;
}

.app-card__meta {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #647a76;
}

.app-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #667d79;
}

.app-callout {
    padding: 18px 18px 2px;
    border: 1px solid #d7e8e4;
    border-radius: 20px;
    background: #f4faf8;
}

.app-form-grid .form-group,
.app-form-group {
    margin-bottom: 18px;
}

.app-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #395c58;
}

.app-hint {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.6;
    color: #728783;
}

.app-input.form-control,
.app-select.form-control,
.app-textarea.form-control {
    min-height: 48px;
    border: 1px solid #d7e6e2;
    border-radius: 15px;
    background: #f9fcfb;
    box-shadow: none;
    color: #173532;
    font-size: 14px;
}

.app-input.form-control:focus,
.app-select.form-control:focus,
.app-textarea.form-control:focus {
    border-color: #1a6b65;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 107, 101, 0.12);
}

.app-textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding-top: 12px;
    padding-bottom: 12px;
}

.app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-app-primary,
.btn-app-secondary,
.btn-app-light,
.btn-app-danger {
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 14px;
    border: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-app-primary {
    background: linear-gradient(135deg, #0b3d3a 0%, #1a6b65 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(11, 61, 58, 0.16);
}

.btn-app-primary:hover,
.btn-app-primary:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0f4b47 0%, #227972 100%);
}

.btn-app-secondary {
    background: #dff2ee;
    color: #15514b;
}

.btn-app-secondary:hover,
.btn-app-secondary:focus {
    background: #d0ebe5;
    color: #123e3a;
}

.btn-app-light {
    background: #eef5f3;
    color: #44635f;
}

.btn-app-light:hover,
.btn-app-light:focus {
    background: #e4f0ed;
    color: #294542;
}

.btn-app-danger {
    background: #fde8e7;
    color: #b83d38;
}

.btn-app-danger:hover,
.btn-app-danger:focus {
    background: #fadad8;
    color: #9f2d29;
}

.app-table-wrap {
    border: 1px solid #e1ece9;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.app-table.table {
    margin-bottom: 0;
}

.app-table.table > thead > tr > th {
    border-bottom: 0;
    border-top: 0;
    background: #f2f8f6;
    color: #436560;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 18px;
}

.app-table.table > tbody > tr > td {
    border-top: 1px solid #edf3f1;
    padding: 16px 18px;
    vertical-align: middle;
    color: #2d4b47;
}

.app-table.table > tbody > tr:hover > td {
    background: #fbfdfc;
}

.app-empty {
    padding: 20px;
    text-align: center;
    color: #718582;
    font-size: 14px;
}

.app-inline-form {
    display: inline;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.status-pill--success {
    background: #dff4ea;
    color: #177245;
}

.status-pill--warning {
    background: #fff1d6;
    color: #986200;
}

.status-pill--muted {
    background: #eef3f2;
    color: #5f7672;
}

.app-trend {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 220px;
    padding-top: 10px;
}

.app-trend__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: end;
    min-height: 180px;
}

.app-trend__bar {
    width: 100%;
    min-height: 4px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, #1a6b65 0%, #0b3d3a 100%);
    box-shadow: 0 10px 20px rgba(11, 61, 58, 0.12);
}

.app-trend__label {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    color: #6b817d;
}

.app-media-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
    border: 1px dashed #cfe2dd;
    border-radius: 22px;
    background: #f7fbfa;
}

.app-media-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.theme-option {
    position: relative;
}

.theme-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.theme-option label {
    display: block;
    min-height: 84px;
    margin: 0;
    padding: 14px;
    border: 1px solid #d7e5e2;
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-option input[type="radio"]:checked + label {
    border-color: #1a6b65;
    box-shadow: 0 0 0 4px rgba(26, 107, 101, 0.12);
    transform: translateY(-1px);
}

.theme-option__swatch {
    display: block;
    width: 100%;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
}

.theme-option__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #244743;
}

.theme-option__meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6a817d;
}

@media (max-width: 991px) {
    .page-hero {
        padding: 24px 22px;
    }

    .page-title {
        font-size: 28px;
    }

    .app-card__header,
    .app-card__body,
    .app-card__footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .page-stack {
        gap: 18px;
    }

    .page-hero {
        border-radius: 20px;
        padding: 22px 18px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-copy {
        font-size: 14px;
    }

    .metric-card,
    .app-card {
        border-radius: 18px;
    }

    .app-card__header,
    .app-card__body,
    .app-card__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-trend {
        gap: 6px;
        min-height: 180px;
    }

    .app-table.table > thead > tr > th,
    .app-table.table > tbody > tr > td {
        padding: 14px 12px;
    }
}
