:root {
    color-scheme: light;
    --ci-primary: #0f766e;
    --ci-ink: #10231f;
}

.brand-link .brand-image {
    opacity: .9;
}

.content-wrapper {
    background: #f4f7f6;
}

.card {
    border-radius: 8px;
}

.table td,
.table th {
    vertical-align: middle;
}

.btn-xs {
    margin-bottom: 2px;
}

.nav-sidebar .nav-link.disabled {
    color: #7f8c8d;
    cursor: default;
}

.small-box {
    min-height: 108px;
    overflow: hidden;
    border-radius: 8px;
}

.small-box .inner {
    display: flex;
    min-height: 108px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 82px 12px 14px;
    position: relative;
    z-index: 2;
}

.small-box h3 {
    max-width: 100%;
    margin: 0 0 5px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.small-box p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.small-box .icon {
    right: 12px;
    top: 12px;
    opacity: .22;
}

.small-box .icon > i {
    font-size: 54px;
}

.auth-body {
    display: grid;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 18% 12%, rgba(20, 184, 166, .18) 0 12%, transparent 34%),
        radial-gradient(circle at 88% 84%, rgba(37, 99, 235, .16) 0 10%, transparent 32%),
        linear-gradient(135deg, #071f1d 0%, #10231f 52%, #172033 100%);
    color: #16201c;
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    position: relative;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, .48), transparent 70%);
}

.auth-body::after {
    content: "";
    position: fixed;
    inset: auto -10% -32% 46%;
    height: 320px;
    border-radius: 999px;
    background: rgba(45, 212, 191, .12);
    filter: blur(64px);
    pointer-events: none;
}

.auth-panel {
    display: grid;
    width: min(1080px, 100%);
    grid-template-columns: minmax(0, 1fr) 384px;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.auth-copy {
    color: #fff;
    min-width: 0;
}

.auth-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-logo-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 4px;
    border: 1px solid rgba(153, 246, 228, .24);
    border-radius: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.auth-logo-mark span {
    display: block;
    border-radius: 3px;
    background: #5eead4;
}

.auth-logo-mark span:nth-child(1) {
    height: 12px;
}

.auth-logo-mark span:nth-child(2) {
    height: 22px;
    background: #93c5fd;
}

.auth-logo-mark span:nth-child(3) {
    height: 17px;
    background: #fbbf24;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(153, 246, 228, .24);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(15, 118, 110, .22);
    color: #8ee0d7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.auth-copy h1 {
    max-width: 590px;
    margin: 24px 0 14px;
    color: #f8fafc;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
}

.auth-copy p {
    max-width: 550px;
    margin: 0 0 18px;
    color: #cbd8d6;
    font-size: 15px;
    line-height: 1.65;
}

.auth-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.auth-highlights span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .07);
    color: #e9fffb;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.auth-visual {
    max-width: 660px;
    margin: 0;
    transform: translateX(-10px);
}

.auth-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

.auth-card {
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
    padding: 32px;
    box-shadow: 0 28px 72px rgba(2, 18, 16, .34);
    backdrop-filter: blur(16px);
}

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

.auth-card-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f0;
}

.auth-card-head > div {
    min-width: 0;
}

.auth-card-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
    color: #0f766e;
}

.auth-card-icon svg {
    width: 25px;
    height: 25px;
}

.auth-card h2 {
    margin: 0 0 5px;
    color: #10231f;
    font-size: 24px;
    line-height: 1.1;
}

.auth-card-head p {
    margin: 0;
    color: #64756f;
    font-size: 13px;
    line-height: 1.5;
}

.auth-card form {
    display: grid;
    gap: 16px;
}

.auth-card label {
    display: grid;
    gap: 8px;
    color: #33443e;
    font-size: 13px;
    font-weight: 700;
}

.auth-input-wrap {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    border: 1px solid #d9e2dd;
    border-radius: 8px;
    background: #fff;
    color: #7c8a84;
    transition: border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.auth-input-wrap:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .14);
    color: #0f766e;
}

.auth-input-wrap svg {
    width: 20px;
    height: 20px;
    justify-self: center;
}

.auth-card input:not([type="checkbox"]) {
    min-height: 44px;
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #fff;
    color: #16201c;
    font: inherit;
    padding: 10px 13px 10px 0;
    outline: none;
}

.auth-card input::placeholder {
    color: #9aa9a4;
}

.auth-card button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 14px;
    box-shadow: 0 14px 26px rgba(15, 118, 110, .22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth-card button:hover {
    filter: brightness(1.03);
    box-shadow: 0 16px 30px rgba(15, 118, 110, .3);
    transform: translateY(-1px);
}

.auth-card button:focus-visible,
.checkbox-line input:focus-visible {
    outline: 3px solid rgba(20, 184, 166, .24);
    outline-offset: 3px;
}

.auth-card button svg {
    width: 18px;
    height: 18px;
}

.auth-card .alert {
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 12px 14px;
}

.auth-card .alert p {
    margin-bottom: 4px;
}

.auth-card .alert.success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.auth-card .alert.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #16201c;
    font-size: 13px;
    font-weight: 600;
}

.checkbox-line input {
    width: auto;
    accent-color: #0f766e;
}

@media (max-width: 980px) {
    .auth-panel {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .auth-copy h1,
    .auth-copy p {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .auth-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-body {
        padding: 16px;
    }

    .auth-copy h1 {
        font-size: 30px;
    }

    .auth-copy p {
        font-size: 14px;
    }

    .auth-brand-row {
        gap: 10px;
    }

    .auth-logo-mark {
        width: 40px;
        height: 40px;
    }

    .auth-highlights {
        margin-bottom: 0;
    }

    .auth-visual {
        display: none;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-card-head {
        gap: 11px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .auth-card h2 {
        font-size: 22px;
    }

    .auth-card-head p {
        font-size: 12px;
    }

    .small-box {
        min-height: 96px;
    }

    .small-box .inner {
        min-height: 96px;
        padding: 12px 52px 10px 12px;
    }

    .small-box h3 {
        font-size: 1.05rem;
        line-height: 1.18;
    }

    .small-box p {
        font-size: .78rem;
    }

    .small-box .icon {
        right: 9px;
        top: 14px;
    }

    .small-box .icon > i {
        font-size: 40px;
    }
}

@media (max-width: 380px) {
    .auth-body {
        padding: 12px;
    }

    .auth-copy h1 {
        font-size: 27px;
    }

    .auth-card {
        padding: 18px;
    }

    .auth-card-icon {
        display: none;
    }
}
