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

:root {
    --sis-navy: #0c2340;
    --sis-blue: #0f62fe;
    --sis-cyan: #2dd4bf;
    --sis-ink: #101828;
    --sis-muted: #667085;
    --sis-line: #d6e2f0;
    --sis-panel: #ffffff;
    --sis-shadow: 0 24px 70px rgba(8, 31, 77, 0.16);
}

body.login-page.sis-login-page {
    margin: 0;
    min-height: 100%;
    color: var(--sis-ink);
    background:
        radial-gradient(circle at top left, rgba(15, 98, 254, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.14), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #eef4fb 55%, #eaf2f9 100%);
    font-family: Arial, Helvetica, sans-serif;
}

body:before,
body:after {
    content: none;
}

.sis-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 480px);
    overflow: hidden;
}

.sis-login-hero {
    position: relative;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    color: #fff;
    background:
        linear-gradient(140deg, rgba(12, 35, 64, 0.96), rgba(15, 98, 254, 0.84) 56%, rgba(45, 212, 191, 0.72)),
        url("../../images/login_bg.jpg") center/cover no-repeat;
}

.sis-login-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 21, 44, 0.34) 0%, rgba(10, 21, 44, 0.08) 48%, rgba(10, 21, 44, 0.28) 100%);
}

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

.sis-brand-lockup,
.sis-mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sis-brand-image {
    width: auto;
    max-width: 78px;
    max-height: 78px;
    object-fit: contain;
}

.sis-brand-mark {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--sis-navy);
    background: #f4fbff;
    box-shadow: 0 18px 40px rgba(5, 18, 40, 0.16);
    font-weight: 900;
    letter-spacing: 1px;
}

.sis-brand-mark.small {
    width: 50px;
    height: 50px;
    border-radius: 14px;
}

.sis-brand-name {
    font-size: 24px;
    font-weight: 800;
}

.sis-brand-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.sis-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.96);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sis-hero-copy {
    max-width: 640px;
}

.sis-hero-copy h1 {
    margin: 18px 0 16px;
    font-size: 56px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.sis-hero-copy p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.8;
}

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

.sis-highlights article {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 35px rgba(4, 15, 32, 0.12);
}

.sis-highlights strong,
.sis-trust-row strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.sis-highlights span,
.sis-trust-row span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.sis-trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sis-trust-row div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.sis-login-card {
    align-self: center;
    width: min(470px, calc(100% - 40px));
    margin: 40px auto;
    padding: 36px;
    background: var(--sis-panel);
    border: 1px solid rgba(214, 226, 240, 0.9);
    border-radius: 24px;
    box-shadow: var(--sis-shadow);
}

.sis-mobile-brand {
    display: none;
    margin-bottom: 24px;
}

.sis-mobile-brand strong {
    display: block;
    color: var(--sis-ink);
    font-size: 18px;
}

.sis-mobile-brand span {
    color: var(--sis-muted);
    font-size: 13px;
}

.sis-login-heading span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 98, 254, 0.08);
    color: var(--sis-blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sis-login-heading h2 {
    margin: 14px 0 10px;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 900;
    color: var(--sis-ink);
}

.sis-login-heading p {
    margin: 0 0 24px;
    color: var(--sis-muted);
    line-height: 1.7;
}

.sis-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--sis-line);
    background: #fff;
    color: var(--sis-ink);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.05);
}

.sis-sso-btn:hover,
.sis-sso-btn:focus {
    text-decoration: none;
    color: var(--sis-navy);
    border-color: #b4cbeb;
}

.sis-sso-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
}

.sis-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--sis-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sis-divider:before,
.sis-divider:after {
    content: "";
    height: 1px;
    background: var(--sis-line);
    flex: 1;
}

.sis-login-form label {
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.sis-input {
    position: relative;
}

.sis-input > i,
.sis-input > a {
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -8px;
    color: #6b8ca8;
    z-index: 2;
}

.sis-input .form-control {
    height: 48px;
    border-radius: 14px !important;
    border: 1px solid var(--sis-line);
    box-shadow: none;
    padding-left: 44px;
    background: #fff;
}

.sis-input .form-control:focus {
    border-color: var(--sis-blue);
    box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}

.password-input .icon-showpass {
    left: auto;
    right: 14px;
    cursor: pointer;
}

.sis-captcha-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
}

.captcha-image img {
    width: 150px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--sis-line);
}

.captcha-input .form-control {
    padding-left: 44px;
}

.sis-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 22px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #475467;
    font-weight: 600;
}

.forgot_password_link {
    color: var(--sis-blue);
    font-weight: 800;
}

.btn-sis-login {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--sis-navy), var(--sis-blue));
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(15, 98, 254, 0.24);
}

.btn-sis-login:hover,
.btn-sis-login:focus {
    background: linear-gradient(135deg, #0a1d35, #0a58e6);
}

.sis-support-line {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--sis-line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--sis-muted);
}

.sis-support-line strong {
    color: var(--sis-ink);
}

.forgot-card {
    display: none;
}

.forgot-card:target {
    display: block;
}

.forgot-card:target ~ #login,
#forgot_password:target + #login {
    display: none;
}

.sis-forgot-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.alert {
    border-radius: 14px;
}

@media (max-width: 980px) {
    .sis-login-shell {
        grid-template-columns: 1fr;
    }

    .sis-login-hero {
        display: none;
    }

    .sis-mobile-brand {
        display: flex;
    }
}

@media (max-width: 540px) {
    .sis-login-card {
        width: calc(100% - 24px);
        margin: 16px auto;
        padding: 22px;
        border-radius: 18px;
    }

    .sis-captcha-row,
    .sis-highlights,
    .sis-trust-row {
        grid-template-columns: 1fr;
    }

    .sis-login-options,
    .sis-support-line,
    .sis-forgot-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sis-login-heading h2 {
        font-size: 26px;
    }
}
