:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f4f7fb;
    --text: #202630;
    --muted: #6d7684;
    --line: #dfe5ec;
    --primary: #1769e0;
    --primary-dark: #0f55be;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --success: #067647;
    --shadow: 0 24px 60px rgba(28, 39, 55, 0.12);
    --radius: 20px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
}

body {
    background: var(--bg);
}

button, input, select {
    font: inherit;
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 48% 16%, rgba(229, 236, 245, 0.55), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fbfcfe 55%, #f6f9fd 100%);
    overflow-x: hidden;
}

.login-page::before,
.login-page::after {
    content: "";
    position: fixed;
    left: -8vw;
    bottom: 6vh;
    width: 60vw;
    height: 25vh;
    border: 1px solid rgba(211, 220, 231, 0.34);
    border-radius: 50%;
    transform: rotate(12deg);
    pointer-events: none;
}

.login-page::after {
    bottom: -4vh;
    left: -4vw;
    width: 68vw;
    opacity: 0.55;
}

.login-layout {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: minmax(440px, 1.25fr) minmax(470px, 0.75fr);
    align-items: center;
    gap: 5vw;
    max-width: 1560px;
    margin: 0 auto;
    padding: 55px 6vw 30px;
}

.login-brand {
    min-height: 540px;
    display: grid;
    place-items: center;
}

.brand-background {
    width: min(690px, 100%);
    aspect-ratio: 300 / 227;
    background: url("/static/img/packeum_logo_dark.png") center / contain no-repeat;
    opacity: 0.9;
    filter: drop-shadow(0 12px 20px rgba(20, 28, 38, 0.08));
}

.login-panel-area {
    display: flex;
    justify-content: center;
}

.login-card {
    width: min(540px, 100%);
    padding: 40px 34px 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(210, 218, 228, 0.9);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.login-lock {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid #dce5f1;
    border-radius: 50%;
    background: #fbfdff;
}

.login-lock svg {
    width: 30px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.7;
}

.login-header {
    text-align: center;
    margin-bottom: 38px;
}

.login-header h1 {
    margin: 0;
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 500;
    letter-spacing: 0.28em;
    padding-left: 0.28em;
}

.login-header p {
    margin: 10px 0 0;
    font-size: 19px;
    color: #4d5663;
}

.login-form > label {
    display: block;
    margin: 0 0 9px;
    font-size: 15px;
    font-weight: 600;
}

.input-shell {
    height: 54px;
    display: flex;
    align-items: center;
    margin-bottom: 23px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-shell:focus-within {
    border-color: #8bb8f5;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.09);
}

.input-shell > svg {
    width: 23px;
    margin-left: 16px;
    fill: none;
    stroke: #748091;
    stroke-width: 1.7;
}

.input-shell input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    background: transparent;
}

.password-toggle {
    width: 52px;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.password-toggle svg {
    width: 23px;
    fill: none;
    stroke: #748091;
    stroke-width: 1.6;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 4px 0 28px;
    font-size: 14px;
}

.login-options a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.checkbox-label input {
    width: 19px;
    height: 19px;
    accent-color: var(--primary);
}

.primary-button,
.primary-link-button {
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #2277eb);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(23, 105, 224, 0.18);
}

.primary-button {
    width: 100%;
    min-height: 58px;
    font-size: 18px;
}

.primary-button:hover,
.primary-link-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.primary-button.compact {
    width: auto;
    min-height: 46px;
    padding: 0 24px;
    font-size: 15px;
}

.primary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.access-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 35px 14px 15px;
}

.access-divider span {
    height: 1px;
    background: var(--line);
}

.access-divider svg {
    width: 24px;
    fill: none;
    stroke: #7a8797;
    stroke-width: 1.5;
}

.access-caption {
    margin: 0;
    text-align: center;
    color: var(--muted);
}

.login-footer {
    height: 70px;
    display: grid;
    place-items: center;
    border-top: 1px solid rgba(220, 226, 234, 0.72);
    color: #727c89;
    letter-spacing: 0.08em;
}

.alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #fecdca;
}

/* APP SHELL */
.app-page {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    min-height: 100vh;
    padding: 28px 20px 22px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
}

.sidebar-brand {
    display: block;
    padding: 8px 16px 28px;
}

.sidebar-brand img {
    width: 190px;
    max-width: 100%;
}

.sidebar nav {
    display: grid;
    gap: 7px;
}

.sidebar nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    color: #3b4552;
    text-decoration: none;
    border-radius: 10px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    color: var(--primary);
    background: #edf5ff;
}

.sidebar nav a.disabled {
    color: #8b95a2;
    cursor: not-allowed;
}

.sidebar nav small {
    font-size: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px 12px 0;
    border-top: 1px solid var(--line);
}

.sidebar-footer strong,
.sidebar-footer span {
    display: block;
}

.sidebar-footer span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.sidebar-footer button {
    margin-top: 16px;
    border: 0;
    padding: 0;
    color: var(--primary);
    background: none;
    cursor: pointer;
}

.content {
    min-width: 0;
    padding: 48px clamp(28px, 5vw, 72px);
}

.page-header {
    margin-bottom: 34px;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.page-header h1 {
    margin: 5px 0 7px;
    font-size: clamp(30px, 4vw, 44px);
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--primary) !important;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.module-card {
    min-height: 190px;
    padding: 26px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(31, 45, 65, 0.06);
}

.module-card:hover:not(.module-card-muted) {
    border-color: #aacbf6;
    transform: translateY(-2px);
}

.module-card h2 {
    margin: 3px 0 10px;
    font-size: 20px;
}

.module-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.module-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: #eaf3ff;
    font-weight: 700;
}

.module-arrow {
    color: var(--primary);
    font-size: 24px;
}

.module-card-muted {
    opacity: 0.72;
}

.status-pill {
    display: inline-flex;
    margin-top: 20px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef1f5;
    color: #667180;
    font-size: 11px;
    font-weight: 600;
}

/* TABLES AND FORMS */
.table-card,
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(31, 45, 65, 0.05);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 17px 20px;
    text-align: left;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
}

th {
    color: #5e6977;
    background: #fafbfd;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td small,
.muted {
    color: var(--muted);
}

.text-right {
    text-align: right;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-active {
    color: var(--success);
}

.status-active::before {
    background: #12b76a;
}

.status-inactive {
    color: var(--danger);
}

.status-inactive::before {
    background: #f04438;
}

.table-action {
    border: 1px solid var(--line);
    padding: 7px 11px;
    border-radius: 8px;
    color: #485364;
    background: #fff;
    cursor: pointer;
}

.form-card {
    max-width: 980px;
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.standard-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.standard-form input,
.standard-form select {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    outline: 0;
    background: #fff;
}

.standard-form input:focus,
.standard-form select:focus {
    border-color: #8bb8f5;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.09);
}

.standard-form small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #485364;
    background: #fff;
    text-decoration: none;
}

.simple-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.simple-card {
    max-width: 480px;
    padding: 38px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.simple-card img {
    width: 230px;
}

.simple-card h1 {
    margin-top: 28px;
}

.simple-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 26px;
}

@media (max-width: 1050px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 30px;
    }

    .login-brand {
        min-height: 220px;
    }

    .brand-background {
        width: min(430px, 80vw);
    }

    .module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .login-layout {
        padding: 25px 18px;
    }

    .login-brand {
        min-height: 155px;
    }

    .login-card {
        padding: 30px 22px 24px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-page {
        display: block;
    }

    .sidebar {
        min-height: auto;
        position: static;
    }

    .sidebar nav,
    .sidebar-footer {
        display: none;
    }

    .sidebar-brand {
        padding-bottom: 8px;
    }

    .content {
        padding: 30px 18px;
    }

    .page-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions > * {
        flex: 1;
    }
}


/* PERMISSION MATRIX V0.2 */
.empty-access-card {
    max-width: 760px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(31, 45, 65, 0.05);
}

.empty-access-card h2 {
    margin-top: 0;
}

.empty-access-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.permission-count {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.permission-count span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #eef5ff;
    color: #245fae;
}

.permission-count span + span {
    background: #ebf8f2;
    color: #067647;
}

.no-access-label {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #667085;
    background: #f2f4f7;
    font-size: 11px;
    font-weight: 600;
}

.row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #bdd6f8;
    border-radius: 8px;
    color: var(--primary);
    background: #f4f8ff;
    text-decoration: none;
}

.user-access-form {
    display: grid;
    gap: 24px;
    padding-bottom: 90px;
}

.form-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.form-section-header > div:first-child {
    min-width: 0;
}

.form-section-header h2 {
    display: inline;
    margin: 0;
    font-size: 21px;
}

.form-section-header p {
    max-width: 760px;
    margin: 8px 0 0 42px;
    color: var(--muted);
    line-height: 1.5;
}

.section-number {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 9px;
    color: var(--primary);
    background: #eaf3ff;
    font-size: 12px;
    font-weight: 800;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    cursor: pointer;
}

.switch-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-control {
    position: relative;
    width: 42px;
    height: 23px;
    border-radius: 999px;
    background: #cfd6df;
    transition: 0.2s;
}

.switch-control::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
    transition: 0.2s;
}

.switch-label input:checked + .switch-control {
    background: var(--primary);
}

.switch-label input:checked + .switch-control::after {
    transform: translateX(19px);
}

.switch-label input:disabled + .switch-control {
    opacity: 0.65;
}

.permission-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(31, 45, 65, 0.05);
}

.permissions-title {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.permission-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 13px;
    color: var(--muted);
    font-size: 12px;
}

.permission-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.permission-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.legend-read {
    background: #5b96e8;
}

.legend-write {
    background: #12a56d;
}

.legend-none {
    background: #b6bec9;
}

.permission-matrix {
    display: grid;
    gap: 20px;
}

.permission-module {
    overflow: hidden;
    border: 1px solid #e0e6ee;
    border-radius: 14px;
}

.permission-module > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #f7f9fc;
    border-bottom: 1px solid #e4e9f0;
}

.permission-module h3 {
    margin: 0;
    font-size: 17px;
}

.permission-module header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.module-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.permission-mini-button {
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid #d6dee8;
    border-radius: 7px;
    color: #4e5b6b;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
}

.permission-mini-button:hover {
    color: var(--primary);
    border-color: #a8c9f5;
}

.permission-row {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 110px 110px 130px;
    align-items: center;
    min-height: 58px;
    padding: 0 20px;
    border-bottom: 1px solid #edf0f4;
}

.permission-row:last-child {
    border-bottom: 0;
}

.permission-row > div:not(:first-child) {
    text-align: center;
}

.permission-row-head {
    min-height: 40px;
    color: #667085;
    background: #fcfcfd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.permission-area-name {
    font-weight: 600;
    font-size: 14px;
}

.permission-checkbox {
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.permission-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-checkbox span {
    position: relative;
    width: 25px;
    height: 25px;
    border: 1px solid #cbd3df;
    border-radius: 7px;
    background: #fff;
    transition: 0.15s;
}

.permission-checkbox input:checked + span {
    border-color: #4b8fe8;
    background: #eaf3ff;
}

.permission-checkbox-write input:checked + span {
    border-color: #16a36c;
    background: #e9f8f1;
}

.permission-checkbox input:checked + span::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid #317bdc;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.permission-checkbox-write input:checked + span::after {
    border-color: #087a50;
}

.permission-checkbox input:disabled + span {
    opacity: 0.6;
    cursor: not-allowed;
}

.permission-result {
    display: inline-flex;
    justify-content: center;
    min-width: 84px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.result-read {
    color: #245fae;
    background: #eaf3ff;
}

.result-write {
    color: #067647;
    background: #e9f8f1;
}

.result-none {
    color: #667085;
    background: #f2f4f7;
}

.sticky-form-actions {
    position: sticky;
    bottom: 18px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 222, 232, 0.95);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(25, 40, 60, 0.13);
    backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
    .permission-row {
        grid-template-columns: minmax(180px, 1fr) 80px 80px 105px;
        padding: 0 12px;
    }

    .permission-module > header,
    .form-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .permission-legend,
    .module-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .permission-card,
    .form-card {
        padding: 20px 15px;
    }

    .permission-table {
        overflow-x: auto;
    }

    .permission-row {
        min-width: 630px;
    }

    .sticky-form-actions {
        bottom: 8px;
    }
}


/* PASSWORD RECOVERY V0.3 */
.recovery-card {
    width: min(500px, 100%);
}

.recovery-card img {
    max-height: 150px;
    object-fit: contain;
}

.recovery-form {
    display: grid;
    gap: 10px;
    text-align: left;
    margin-top: 24px;
}

.recovery-form label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

.recovery-form input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    outline: 0;
    background: #fff;
}

.recovery-form input:focus {
    border-color: #8bb8f5;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.09);
}

.recovery-form small {
    margin: -2px 0 7px;
    color: var(--muted);
    line-height: 1.4;
}

.full-width {
    width: 100% !important;
    margin-top: 13px;
}

.text-link {
    display: inline-block;
    margin-top: 23px;
    color: var(--primary);
    text-decoration: none;
}

.success-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 26px auto 10px;
    border-radius: 50%;
    color: #067647;
    background: #e9f8f1;
    font-size: 28px;
    font-weight: 700;
}

.logout-under-form {
    margin-top: 20px;
}

.text-button {
    border: 0;
    padding: 8px;
    color: var(--primary);
    background: transparent;
    cursor: pointer;
}


/* USER EMAIL NOTIFICATION V0.4 */
.alert-success {
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.alert-warning {
    color: #93370d;
    background: #fffaeb;
    border: 1px solid #fedf89;
}


/* DELETE USER AND NO PROFILE V0.5 */
.table-action-danger {
    color: #b42318;
    border-color: #fecdca;
    background: #fff6f5;
}

.table-action-danger:hover {
    color: #912018;
    border-color: #fda29b;
    background: #fef3f2;
}

.row-actions form {
    margin: 0;
}


/* PREVENT NEW USER AUTOFILL V0.5.2 */
.autofill-decoy {
    position: fixed !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* RESEND USER NOTIFICATION V0.6.1 */
.table-action-notification {
    color: #175cd3;
    border-color: #b2ccff;
    background: #eff4ff;
}

.table-action-notification:hover {
    color: #1849a9;
    border-color: #84adff;
    background: #e0eaff;
}

.row-actions {
    flex-wrap: wrap;
}


/* LOGIN PANEL LARGE V0.8.99 */

.login-layout {
    grid-template-columns:
        minmax(440px, 1.15fr)
        minmax(600px, 0.85fr);
    gap: 4vw;
    max-width: 1680px;
}

.login-card {
    width: min(640px, 100%);
    padding: 52px 46px 40px;
    border-radius: 30px;
}

.login-lock {
    width: 84px;
    height: 84px;
    margin-bottom: 24px;
}

.login-lock svg {
    width: 34px;
}

.login-header {
    margin-bottom: 42px;
}

.login-header h1 {
    font-size: clamp(40px, 3.2vw, 50px);
}

.login-header p {
    margin-top: 12px;
    font-size: 21px;
}

.login-form > label {
    margin-bottom: 10px;
    font-size: 17px;
}

.input-shell {
    height: 62px;
    margin-bottom: 26px;
    border-radius: 12px;
}

.input-shell > svg {
    width: 25px;
    margin-left: 18px;
}

.input-shell input {
    padding: 0 16px;
    font-size: 18px;
}

.password-toggle {
    width: 58px;
}

.login-options {
    margin-top: 2px;
    margin-bottom: 26px;
    font-size: 15px;
}

.login-options,
.login-options a,
.checkbox-label {
    font-size: 15px;
}

.login-form > .primary-button {
    min-height: 60px;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 750;
}

.access-divider {
    margin-top: 34px;
}

.access-caption {
    font-size: 16px;
}

@media (max-width: 1200px) {
    .login-layout {
        grid-template-columns:
            minmax(380px, 1fr)
            minmax(520px, 0.9fr);
        gap: 3vw;
    }

    .login-card {
        width: min(580px, 100%);
        padding: 44px 38px 34px;
    }
}

@media (max-width: 1050px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-card {
        width: min(640px, 100%);
    }
}

@media (max-width: 760px) {
    .login-card {
        width: 100%;
        padding: 34px 24px 28px;
        border-radius: 22px;
    }

    .login-lock {
        width: 70px;
        height: 70px;
    }

    .login-header h1 {
        font-size: 36px;
    }

    .login-header p {
        font-size: 18px;
    }

    .input-shell {
        height: 56px;
    }

    .input-shell input {
        font-size: 17px;
    }

    .login-form > .primary-button {
        min-height: 56px;
        font-size: 18px;
    }
}


/* LOGIN DEFINITIVE LARGE PANEL V0.9.00 */

body.login-page .login-layout {
    grid-template-columns:
        minmax(380px, 0.90fr)
        minmax(720px, 1.10fr) !important;
    gap: 2vw !important;
    max-width: 1800px !important;
    padding: 44px 3.5vw 26px !important;
}

body.login-page .login-panel-area {
    width: 100% !important;
    justify-content: center !important;
}

body.login-page .login-card {
    width: 700px !important;
    max-width: 100% !important;
    padding: 60px 54px 46px !important;
    border-radius: 32px !important;
}

body.login-page .login-lock {
    width: 92px !important;
    height: 92px !important;
    margin-bottom: 28px !important;
}

body.login-page .login-lock svg {
    width: 38px !important;
}

body.login-page .login-header {
    margin-bottom: 46px !important;
}

body.login-page .login-header h1 {
    font-size: 52px !important;
    line-height: 1.05 !important;
}

body.login-page .login-header p {
    margin-top: 14px !important;
    font-size: 22px !important;
}

body.login-page .login-form > label {
    margin-bottom: 10px !important;
    font-size: 18px !important;
}

body.login-page .input-shell {
    height: 70px !important;
    margin-bottom: 28px !important;
    border-radius: 13px !important;
}

body.login-page .input-shell > svg {
    width: 28px !important;
    margin-left: 20px !important;
}

body.login-page .input-shell input {
    padding: 0 18px !important;
    font-size: 19px !important;
}

body.login-page .password-toggle {
    width: 66px !important;
}

body.login-page .login-options,
body.login-page .login-options a,
body.login-page .checkbox-label {
    font-size: 16px !important;
}

body.login-page .login-options {
    margin-bottom: 30px !important;
}

body.login-page .login-form > .primary-button {
    height: 68px !important;
    min-height: 68px !important;
    border-radius: 13px !important;
    font-size: 21px !important;
    font-weight: 800 !important;
}

body.login-page .access-divider {
    margin-top: 40px !important;
}

body.login-page .access-caption {
    font-size: 17px !important;
}

@media (max-width: 1350px) {
    body.login-page .login-layout {
        grid-template-columns:
            minmax(340px, 0.85fr)
            minmax(620px, 1fr) !important;
    }

    body.login-page .login-card {
        width: 640px !important;
        padding: 50px 44px 40px !important;
    }
}

@media (max-width: 1050px) {
    body.login-page .login-layout {
        grid-template-columns: 1fr !important;
    }

    body.login-page .login-card {
        width: min(680px, 100%) !important;
    }
}

@media (max-width: 760px) {
    body.login-page .login-card {
        width: 100% !important;
        padding: 36px 26px 30px !important;
    }

    body.login-page .login-header h1 {
        font-size: 40px !important;
    }

    body.login-page .login-header p {
        font-size: 19px !important;
    }

    body.login-page .input-shell {
        height: 58px !important;
    }

    body.login-page .login-form > .primary-button {
        height: 58px !important;
        min-height: 58px !important;
        font-size: 18px !important;
    }
}


/* LOGIN LARGER TEXT V0.9.01 */

body.login-page .login-header h1 {
    font-size: 56px !important;
    line-height: 1.05 !important;
    font-weight: 650 !important;
}

body.login-page .login-header p {
    font-size: 25px !important;
    line-height: 1.35 !important;
}

body.login-page .login-form > label {
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;
    margin-bottom: 12px !important;
}

body.login-page .input-shell input {
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}

body.login-page .input-shell input::placeholder {
    font-size: 22px !important;
}

body.login-page .login-options {
    gap: 20px !important;
}

body.login-page .login-options,
body.login-page .login-options a,
body.login-page .checkbox-label,
body.login-page .checkbox-label span {
    font-size: 19px !important;
    line-height: 1.35 !important;
}

body.login-page .checkbox-label input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
}

body.login-page .login-form > .primary-button {
    font-size: 23px !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
}

body.login-page .access-caption {
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

body.login-page .password-toggle {
    font-size: 21px !important;
}

@media (max-width: 760px) {
    body.login-page .login-header h1 {
        font-size: 44px !important;
    }

    body.login-page .login-header p {
        font-size: 21px !important;
    }

    body.login-page .login-form > label {
        font-size: 19px !important;
    }

    body.login-page .input-shell input,
    body.login-page .input-shell input::placeholder {
        font-size: 19px !important;
    }

    body.login-page .login-options,
    body.login-page .login-options a,
    body.login-page .checkbox-label,
    body.login-page .checkbox-label span {
        font-size: 17px !important;
    }

    body.login-page .login-form > .primary-button {
        font-size: 20px !important;
    }

    body.login-page .access-caption {
        font-size: 18px !important;
    }
}


/* LOGIN EXTRA LARGE TEXT V0.9.02 */

body.login-page .login-header h1 {
    font-size: 60px !important;
}

body.login-page .login-header p {
    font-size: 27px !important;
}

body.login-page .login-form > label {
    font-size: 24px !important;
    margin-bottom: 13px !important;
}

body.login-page .input-shell input,
body.login-page .input-shell input::placeholder {
    font-size: 24px !important;
}

body.login-page .login-options,
body.login-page .login-options a,
body.login-page .checkbox-label,
body.login-page .checkbox-label span {
    font-size: 21px !important;
}

body.login-page .checkbox-label input[type="checkbox"] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

body.login-page .login-form > .primary-button {
    font-size: 25px !important;
}

body.login-page .access-caption {
    font-size: 22px !important;
}

@media (max-width: 760px) {
    body.login-page .login-header h1 {
        font-size: 48px !important;
    }

    body.login-page .login-header p {
        font-size: 23px !important;
    }

    body.login-page .login-form > label {
        font-size: 21px !important;
    }

    body.login-page .input-shell input,
    body.login-page .input-shell input::placeholder {
        font-size: 21px !important;
    }

    body.login-page .login-options,
    body.login-page .login-options a,
    body.login-page .checkbox-label,
    body.login-page .checkbox-label span {
        font-size: 18px !important;
    }

    body.login-page .login-form > .primary-button {
        font-size: 22px !important;
    }

    body.login-page .access-caption {
        font-size: 20px !important;
    }
}


/* LOGIN EXTRA EXTRA LARGE TEXT V0.9.03 */

body.login-page .login-header h1 {
    font-size: 66px !important;
}

body.login-page .login-header p {
    font-size: 30px !important;
}

body.login-page .login-form > label {
    font-size: 27px !important;
    margin-bottom: 14px !important;
}

body.login-page .input-shell input,
body.login-page .input-shell input::placeholder {
    font-size: 27px !important;
}

body.login-page .login-options,
body.login-page .login-options a,
body.login-page .checkbox-label,
body.login-page .checkbox-label span {
    font-size: 23px !important;
}

body.login-page .checkbox-label input[type="checkbox"] {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
}

body.login-page .login-form > .primary-button {
    font-size: 28px !important;
}

body.login-page .access-caption {
    font-size: 24px !important;
}

@media (max-width: 760px) {
    body.login-page .login-header h1 {
        font-size: 52px !important;
    }

    body.login-page .login-header p {
        font-size: 25px !important;
    }

    body.login-page .login-form > label {
        font-size: 23px !important;
    }

    body.login-page .input-shell input,
    body.login-page .input-shell input::placeholder {
        font-size: 23px !important;
    }

    body.login-page .login-options,
    body.login-page .login-options a,
    body.login-page .checkbox-label,
    body.login-page .checkbox-label span {
        font-size: 20px !important;
    }

    body.login-page .login-form > .primary-button {
        font-size: 24px !important;
    }

    body.login-page .access-caption {
        font-size: 21px !important;
    }
}


/* ACCESS USERS STATUS BIGGER V0.9.17 */
.access-users-table .status-dot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

.access-users-table .status-dot::before {
    width: 11px;
    height: 11px;
}
