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

body.alis-login-page {
    margin: 0;
    min-height: 100vh;
    color: #17202a;
    /* Sky-to-white backdrop matched to the edges of brookside2.jpeg so the
       photo can be shown near its native size (617x409) instead of being
       stretched and blurred across the whole viewport. */
    background: linear-gradient(180deg, #0278c0 0%, #0a8fd0 34%, #bfe0f4 58%, #ffffff 78%) fixed;
    font-family: Arial, Helvetica, sans-serif;
}

.alis-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 32px;
    background: transparent;
}

.alis-login-hero {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.alis-login-hero img {
    display: block;
    width: 100%;
    max-width: 617px;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
    mask-composite: intersect;
}

.alis-eyebrow {
    margin: 0 0 10px;
    color: #0f6b4f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.alis-login-panel {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.alis-login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(2, 60, 104, 0.22);
}

.alis-system-brand {
    text-align: center;
    margin-bottom: 30px;
}

.alis-system-logo {
    width: 132px;
    height: 132px;
    object-fit: contain;
    margin-bottom: 16px;
}

.alis-system-brand h1 {
    margin: 0;
    color: #17202a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.alis-version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    margin: 0 0 14px;
    border: 1px solid rgba(15, 107, 79, 0.28);
    border-radius: 8px;
    background: rgba(15, 107, 79, 0.1);
    color: #0f6b4f;
    font-size: 14px;
    font-weight: 700;
}

.alis-system-brand p:last-child {
    margin: 10px 0 0;
    color: #5d6871;
    font-size: 14px;
    line-height: 1.5;
}

.alis-login-card-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 14px;
}

.alis-login-card h2 {
    margin: 0;
    color: #17202a;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.alis-login-intro {
    margin: 0 0 24px;
    color: #5f6b75;
    font-size: 15px;
    line-height: 1.55;
}

.alis-login-card .alert {
    border-radius: 8px;
    margin-bottom: 18px;
}

.alis-login-card .alert ul {
    margin: 0;
    padding-left: 18px;
}

.alis-login-form {
    margin: 0;
}

.alis-form-group {
    margin-bottom: 20px;
}

.alis-form-group label {
    display: block;
    float: none;
    width: auto;
    margin-bottom: 8px;
    color: #26323c;
    font-weight: 700;
}

.alis-floating-field label {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 3;
    margin: 0;
    padding: 0 5px;
    width: auto;
    max-width: calc(100% - 28px);
    transform: translateY(-50%);
    color: #60707a;
    background: rgba(251, 253, 252, 0.92);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    pointer-events: none;
    transition: top 0.16s ease, font-size 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.alis-input-wrap {
    position: relative;
}

.alis-input-wrap .form-control {
    float: none;
    width: 100%;
    height: 48px;
    padding: 14px 14px 8px;
    border: 1px solid #b6c5bf;
    border-radius: 8px;
    box-shadow: none;
    color: #17202a;
    background: rgba(251, 253, 252, 0.9);
}

.alis-input-wrap input[type="password"],
.alis-input-wrap input[type="text"]#password {
    padding-right: 48px;
}

.alis-input-wrap .form-control:focus {
    border-color: #0f6b4f;
    box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.14);
}

.alis-floating-field .form-control:focus + label,
.alis-floating-field .form-control:not(:placeholder-shown) + label {
    top: 0;
    color: #0f6b4f;
    background: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 700;
}

.alis-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    z-index: 4;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    transform: translateY(-50%);
}

.alis-password-toggle:hover,
.alis-password-toggle:focus {
    background: #edf4f1;
    outline: none;
}

.alis-eye {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 12px;
    border: 2px solid #60707a;
    border-radius: 50%;
}

.alis-eye::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60707a;
    transform: translate(-50%, -50%);
}

.alis-password-toggle[aria-pressed="true"] .alis-eye {
    border-color: #0f6b4f;
}

.alis-password-toggle[aria-pressed="true"] .alis-eye::before {
    background: #0f6b4f;
}

.alis-actions {
    margin-top: 26px;
}

.alis-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #0f6b4f;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.alis-login-button:hover,
.alis-login-button:focus {
    background: #0b5a42;
    color: #fff;
}

.alis-login-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e0e7e4;
    color: #64717c;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.alis-login-footer a {
    display: inline-block;
    margin-bottom: 8px;
    color: #0f6b4f;
    font-weight: 700;
}

.alis-login-footer p {
    margin: 0;
}

@media (max-width: 960px) {
    .alis-login-shell {
        flex-direction: column;
        gap: 20px;
        padding: 24px 18px;
    }

    .alis-login-hero img {
        max-width: 480px;
    }

    .alis-login-panel {
        flex: none;
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 860px) {
    .alis-login-shell {
        padding: 18px;
    }

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

    .alis-login-panel {
        align-items: center;
    }

    .alis-login-card {
        max-width: none;
        padding: 24px;
        box-shadow: none;
    }
}
