html,
body {
    min-height: 100%;
}

body {
    background: #0a3150;
}

.cskh-command-login {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f5fbff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        linear-gradient(110deg, rgba(6, 38, 68, 0.96), rgba(12, 92, 147, 0.82) 47%, rgba(14, 113, 172, 0.86)),
        url("/DataLibrariesFILECSKH/Home/background_dashboardpanel_v4.jpg") center / cover no-repeat;
}

.cskh-command-login input,
.cskh-command-login button,
.cskh-command-login textarea,
.cskh-command-login select {
    font-family: inherit;
}

.cskh-command-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(196, 232, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(196, 232, 255, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 72%);
    pointer-events: none;
}

.cskh-command-topbar,
.cskh-command-stage,
.cskh-command-footer {
    position: relative;
    z-index: 1;
}

.cskh-command-topbar {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cskh-command-brand {
    display: inline-flex;
    align-items: center;
}

.cskh-command-brand img {
    width: 148px;
    max-width: 46vw;
    height: auto;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.24));
}

.cskh-command-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid rgba(178, 223, 247, 0.24);
    border-radius: 8px;
    background: rgba(224, 244, 255, 0.1);
    color: rgba(245, 251, 255, 0.86);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cskh-command-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6bdcff;
    box-shadow: 0 0 0 5px rgba(107, 220, 255, 0.2);
}

.cskh-command-stage {
    flex: 1 0 auto;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 60px;
    padding: 34px 0 24px;
}

.cskh-command-intro {
    max-width: 710px;
    padding: 20px 0;
}

.cskh-command-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(130, 213, 250, 0.46);
    border-radius: 8px;
    background: rgba(44, 155, 219, 0.22);
    color: #d8f5ff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cskh-command-intro h1 {
    margin: 24px 0 0;
    max-width: 690px;
    color: #ffffff;
    font-size: 54px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
}

.cskh-command-intro p {
    margin: 24px 0 0;
    max-width: 610px;
    color: rgba(235, 247, 255, 0.82);
    font-size: 16px;
    line-height: 1.75;
}

.cskh-command-metrics {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
}

.cskh-command-metrics div {
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(178, 223, 247, 0.22);
    border-radius: 8px;
    background: rgba(224, 244, 255, 0.11);
    backdrop-filter: blur(10px);
}

.cskh-command-metrics strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
}

.cskh-command-metrics span {
    display: block;
    margin-top: 8px;
    color: rgba(235, 247, 255, 0.68);
    font-size: 12px;
    line-height: 1.45;
}

.cskh-access-panel {
    border: 1px solid rgba(188, 220, 239, 0.5);
    border-radius: 8px;
    background: rgba(247, 252, 255, 0.96);
    color: #122639;
    box-shadow: 0 30px 70px rgba(2, 25, 45, 0.36);
    padding: 34px;
}

.cskh-access-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.cskh-access-header span {
    display: block;
    color: #137fbe;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cskh-access-header h2 {
    margin: 8px 0 0;
    color: #122639;
    font-size: 30px;
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: 0;
}

.cskh-access-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 42px;
    border: 1px solid rgba(43, 155, 221, 0.32);
    border-radius: 8px;
    background: #e8f7ff;
    color: #137fbe;
    font-size: 13px;
    font-weight: 700;
}

.cskh-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.cskh-alert-danger {
    border: 1px solid rgba(191, 55, 58, 0.24);
    background: #fff1f1;
    color: #9c2227;
}

.cskh-alert-warning {
    border: 1px solid rgba(176, 126, 34, 0.3);
    background: #fff8e9;
    color: #7a5511;
}

.cskh-alert-success {
    border: 1px solid rgba(30, 132, 185, 0.24);
    background: #ecf9ff;
    color: #0a6f93;
}

.cskh-field {
    display: block;
    margin-bottom: 18px;
}

.cskh-field > span:first-child {
    display: block;
    margin-bottom: 8px;
    color: #24384b;
    font-size: 14px;
    font-weight: 600;
}

.cskh-validation {
    display: block;
    margin-top: 7px;
    color: #9c2227;
    font-size: 12px;
    line-height: 1.45;
}

.cskh-input-frame {
    position: relative;
    display: block;
}

.cskh-input-frame > .fa {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    transform: translateY(-50%);
    color: #6d8190;
    font-size: 16px;
}

.cskh-input-frame input {
    width: 100%;
    height: 52px;
    border: 1px solid #cfdfea;
    border-radius: 8px;
    background: #ffffff;
    color: #122639;
    font-size: 15px;
    outline: none;
    padding: 0 48px;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cskh-input-frame input:focus {
    border-color: #1a9be0;
    box-shadow: 0 0 0 4px rgba(26, 155, 224, 0.15);
}

.cskh-password-frame input {
    padding-right: 56px;
}

.cskh-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #637987;
    transform: translateY(-50%);
    transition: background 0.16s ease, color 0.16s ease;
}

.cskh-password-toggle:hover,
.cskh-password-toggle:focus {
    background: #e8f7ff;
    color: #137fbe;
}

.cskh-access-actions {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 18px;
}

.cskh-access-actions a {
    color: #137fbe;
    font-size: 13px;
    font-weight: 600;
}

.cskh-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 8px;
    background: #0d6fae;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(13, 111, 174, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.cskh-submit:hover,
.cskh-submit:focus {
    background: #1398df;
    color: #ffffff;
    box-shadow: 0 20px 36px rgba(19, 152, 223, 0.3);
    transform: translateY(-1px);
}

.cskh-submit:disabled,
.cskh-submit.is-loading {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.cskh-submit,
a.cskh-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cskh-access-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #dceaf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #617685;
    font-size: 12px;
}

.cskh-access-footer a {
    color: #137fbe;
    font-weight: 600;
}

.cskh-command-login-otp .cskh-command-stage {
    min-height: calc(100vh - 160px);
}

.cskh-otp-stage {
    grid-template-columns: minmax(0, 0.9fr) 430px;
}

.cskh-otp-user {
    margin: -8px 0 18px;
    padding: 12px 14px;
    border: 1px solid #d4e8f5;
    border-radius: 8px;
    background: #f3f9fd;
    color: #36546a;
    font-size: 13px;
    font-weight: 600;
}

.cskh-resend-form {
    margin-top: 16px;
    text-align: center;
}

.cskh-resend-form button {
    border: 0;
    background: transparent;
    color: #137fbe;
    font-size: 13px;
    font-weight: 600;
}

.cskh-recovery-login .cskh-command-stage {
    grid-template-columns: minmax(0, 0.95fr) 430px;
}

.cskh-recovery-steps {
    margin-top: 34px;
    display: grid;
    gap: 12px;
    max-width: 610px;
}

.cskh-recovery-steps div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 12px 14px;
    border: 1px solid rgba(178, 223, 247, 0.22);
    border-radius: 8px;
    background: rgba(224, 244, 255, 0.11);
    color: rgba(235, 247, 255, 0.82);
    backdrop-filter: blur(10px);
}

.cskh-recovery-steps strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(107, 220, 255, 0.16);
    color: #d8f5ff;
    font-size: 13px;
    font-weight: 700;
}

.cskh-recovery-steps span {
    color: rgba(235, 247, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
}

.cskh-recovery-note,
.cskh-state-message {
    margin: 2px 0 20px;
    padding: 14px 15px;
    border: 1px solid #d4e8f5;
    border-radius: 8px;
    background: #f3f9fd;
    color: #36546a;
    font-size: 13px;
    line-height: 1.6;
}

.cskh-state-message {
    text-align: center;
}

.cskh-state-message strong {
    display: block;
    margin-bottom: 5px;
    color: #0d6fae;
    font-size: 16px;
}

.cskh-phone-preview {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid rgba(43, 155, 221, 0.22);
    border-radius: 8px;
    background: #edf8ff;
    color: #122639;
    text-align: center;
}

.cskh-phone-preview span {
    display: block;
    color: #617685;
    font-size: 12px;
}

.cskh-phone-preview strong {
    display: block;
    margin-top: 6px;
    color: #0d6fae;
    font-size: 22px;
    line-height: 1.2;
}

.cskh-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 14px;
    color: #137fbe;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cskh-secondary-link:hover,
.cskh-secondary-link:focus {
    color: #0d6fae;
}

.cskh-recovery-notification {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1050;
    display: none;
    width: min(520px, calc(100% - 32px));
    padding: 13px 42px 13px 16px;
    border: 1px solid rgba(43, 155, 221, 0.28);
    border-radius: 8px;
    background: #0d6fae;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(2, 25, 45, 0.28);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    transform: translateX(-50%);
}

.cskh-recovery-notification .dismiss {
    position: absolute;
    top: 8px;
    right: 10px;
}

.cskh-recovery-notification .dismiss a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
}

.cskh-command-footer {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 12px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(235, 247, 255, 0.62);
    font-size: 12px;
}

@media (max-width: 1040px) {
    .cskh-command-stage {
        grid-template-columns: minmax(0, 1fr) 410px;
        gap: 36px;
    }

    .cskh-recovery-login .cskh-command-stage {
        grid-template-columns: minmax(0, 1fr) 410px;
    }

    .cskh-command-intro h1 {
        font-size: 46px;
    }
}

@media (max-width: 880px) {
    .cskh-command-topbar,
    .cskh-command-stage,
    .cskh-command-footer {
        width: min(620px, calc(100% - 28px));
    }

    .cskh-command-stage {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding-top: 18px;
    }

    .cskh-recovery-login .cskh-command-stage {
        grid-template-columns: 1fr;
    }

    .cskh-command-intro {
        max-width: none;
        padding: 16px 0 0;
    }

    .cskh-command-intro h1 {
        font-size: 34px;
    }

    .cskh-command-intro p {
        font-size: 15px;
    }

    .cskh-command-metrics {
        margin-top: 22px;
        grid-template-columns: 1fr;
    }

    .cskh-recovery-steps {
        margin-top: 22px;
    }

    .cskh-access-panel {
        padding: 28px;
    }

    .cskh-command-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .cskh-command-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cskh-command-stage {
        gap: 22px;
    }

    .cskh-command-intro h1 {
        font-size: 28px;
    }

    .cskh-access-panel {
        padding: 22px;
    }

    .cskh-access-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cskh-access-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
