:root {
    --cg-red: #C8202A;
    --cg-graphite: #ffffff;
    --cg-bg: #121317;
    --cg-text: #F4F4F1;
    --cg-muted: #9A9CA3;
    --cg-line: #2C2E36;
    --cg-field: #14151A;
    --cg-btn: #215fe3;
    --cg-btn-text: #ffffff;
    --cg-link: #215fe3;
    --cg-err: #FF7A82;
    color-scheme: dark;
}

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

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--cg-bg);
    color: var(--cg-text);
    -webkit-font-smoothing: antialiased;
}

.cg-shell {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.cg-brand {
    position: relative;
    background: linear-gradient(160deg, #ffd5ec 0%, #215fe3 55%, #c8d7ff 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 56px);
    color: var(--cg-graphite);
}

.cg-rings {
    position: absolute;
    right: -18%;
    bottom: -22%;
    width: 90%;
    aspect-ratio: 1;
    pointer-events: none;
}

.cg-rings circle {
    fill: none;
    stroke: #fff;
    stroke-width: 14;
    opacity: .55;
}

.cg-rings circle:nth-child(2) {
    stroke-width: 10;
    opacity: .4;
}

.cg-rings circle:nth-child(3) {
    stroke-width: 7;
    opacity: .3;
}

.cg-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.cg-brand.has-photo {
    background-image: linear-gradient(165deg, rgb(8 14 28 / 0%) 0%, rgb(35 35 35 / 0%) 46%, rgb(207 207 207 / 0%) 100%), var(--cg-login-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cg-brand.has-photo .cg-rings {
    opacity: .35;
}

.cg-brand.has-photo .cg-lockup b,
.cg-brand.has-photo .cg-pitch h2 {
    color: #2d2d2d;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

.cg-brand.has-photo .cg-tag,
.cg-brand.has-photo .cg-pitch p,
.cg-brand.has-photo small {
    color: rgba(28, 28, 28, 0.9);
}

.cg-lockup svg {
    width: 52px;
    height: 52px;
    flex: none;
}

.cg-logo {
    display: grid;
    flex: none;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgb(255 255 255 / 72%);
    box-shadow: none;
}

.cg-logo img {
    display: block;
    height: 85px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
}

.cg-lockup b {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--cg-red);
    line-height: 1;
}

.cg-tag {
    display: block;
    font-size: 12px;
    letter-spacing: .14em;
    margin-top: 5px;
    color: var(--cg-graphite);
}

.cg-pitch {
    position: relative;
    max-width: 30ch;
}

.cg-pitch h2 {
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 16px;
    color: #282f2e;
}

.cg-pitch p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #505257;
}

.cg-brand small {
    position: relative;
    font-size: 13px;
    color: #4a4b4d;
}

.cg-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
    background: var(--cg-bg);
}

.cg-card {
    width: 100%;
    max-width: 400px;
}

.cg-card h1,
.cg-panel h1 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    color: var(--cg-text);
}

.cg-sub,
.cg-panel .text-muted,
.cg-panel .text-gray-500 {
    margin: 0 0 32px;
    color: #d5d7de !important;
    font-size: 16px;
    line-height: 1.5;
}

.cg-field {
    margin-bottom: 18px;
}

.cg-field label,
.cg-panel label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--cg-text);
}

.cg-control {
    position: relative;
}

.cg-panel input[type=text],
.cg-panel input[type=password],
.cg-panel input[type=email],
.cg-panel .form-control {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font: inherit;
    font-size: 16px;
    color: var(--cg-text);
    background: var(--cg-field) !important;
    border: 1.5px solid var(--cg-line) !important;
    border-radius: 12px !important;
    outline: none;
    box-shadow: none !important;
}

.cg-panel input::placeholder {
    color: var(--cg-muted);
    opacity: .7;
}

.cg-panel input:focus {
    border-color: #215fe3 !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, .16) !important;
}

.cg-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--cg-muted);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.cg-eye:hover {
    color: var(--cg-text);
}

.cg-control:has(.cg-eye) input {
    padding-right: 52px;
}

.cg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 26px;
    font-size: 14px;
}

.cg-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--cg-text);
    font-weight: 400;
    margin: 0;
}

.cg-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cg-check i {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--cg-line);
    background: var(--cg-field);
    display: grid;
    place-items: center;
}

.cg-check i svg {
    width: 12px;
    height: 12px;
    stroke: #17181C;
    stroke-width: 3;
    fill: none;
    opacity: 0;
}

.cg-check input:checked+i {
    background: #215fe3;
    border-color: #215fe3;
}

.cg-check input:checked+i svg {
    opacity: 1;
}

.cg-panel a {
    color: var(--cg-link);
    text-decoration: none;
    font-weight: 500;
}

.cg-panel a:hover {
    text-decoration: underline;
}

.cg-btn,
.cg-panel .btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--cg-btn) !important;
    color: var(--cg-btn-text) !important;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-btn .indicator-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cg-panel .btn {
    width: auto;
    padding: 0 22px;
}

.cg-btn:hover,
.cg-panel .btn:hover {
    opacity: .92;
}

.cg-btn .indicator-progress,
.cg-panel .indicator-progress {
    display: none;
}

.cg-btn[data-kt-indicator=on] .indicator-label,
.cg-panel .btn[data-kt-indicator=on] .indicator-label {
    display: none;
}

.cg-btn[data-kt-indicator=on] .indicator-progress,
.cg-panel .btn[data-kt-indicator=on] .indicator-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cg-help {
    margin: 28px 0 0;
    font-size: 14px;
    color: #d5d7de;
    text-align: center;
}

.cg-status {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--cg-muted);
}

.cg-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2DB35D;
    margin-right: 7px;
}

.cg-alert {
    position: relative;
    margin-bottom: 18px;
    padding: 12px 40px 12px 14px;
    border-radius: 10px;
    background: #1A1B21;
    border: 1px solid var(--cg-line);
    color: var(--cg-text);
    font-size: 14px;
}

.cg-alert-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c8cad3;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.cg-alert-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.cg-alert.error {
    border-color: var(--cg-err);
    color: var(--cg-err);
}

.cg-msg,
.fv-plugins-message-container {
    font-size: 13px;
    color: var(--cg-err);
    margin-top: 6px;
}

@media (max-width: 860px) {

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

    .cg-shell {
        min-height: 100dvh;
        grid-template-columns: 1fr;
    }

    .cg-brand {
        padding: 16px 16px 18px;
        padding-top: calc(16px + env(safe-area-inset-top));
        flex-direction: row;
        align-items: center;
    }

    .cg-lockup {
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .cg-lockup svg {
        width: 40px;
        height: 40px;
    }

    .cg-logo {
        height: 52px;
        max-width: 180px;
        padding: 6px 8px;
    }

    .cg-logo img {
        height: 36px;
        max-width: 160px;
    }

    .cg-lockup b {
        font-size: clamp(15px, 4.4vw, 18px);
        letter-spacing: .03em;
    }

    .cg-tag {
        font-size: 10px;
        letter-spacing: .08em;
        margin-top: 3px;
    }

    .cg-pitch,
    .cg-brand small,
    .cg-rings {
        display: none;
    }

    .cg-panel {
        align-items: stretch;
        justify-content: flex-start;
        padding: 28px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .cg-card {
        max-width: none;
    }

    .cg-card h1,
    .cg-panel h1 {
        font-size: 26px;
    }

    .cg-sub {
        margin-bottom: 24px;
    }

    .cg-row {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .cg-status {
        position: static;
        margin-top: 28px;
    }
}

@media (max-width: 380px) {
    .cg-tag {
        display: none;
    }
}