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

body.alis-login-page {
    margin: 0;
    min-height: 100vh;
    color: #17202a;
    background: linear-gradient(180deg, rgba(238, 244, 241, 0.96), rgba(255, 255, 255, 0.98));
    font-family: Arial, Helvetica, sans-serif;
}

body.alis-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url("../i/coat_of_arms_of_uganda.png") center / 520px auto no-repeat;
    opacity: 0.26;
    pointer-events: none;
}

.alis-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    background: transparent;
}

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

.alis-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
}

.alis-login-card {
    width: 100%;
    max-width: 430px;
    padding: 36px;
    border: 1px solid #d8e3de;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(27, 45, 39, 0.12);
    backdrop-filter: blur(1px);
}

.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: 860px) {
    body.alis-login-page {
        background: #f4f8f6;
    }

    .alis-login-shell {
        padding: 18px;
    }

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

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