.background-container {
    background: linear-gradient(180deg,rgba(83, 165, 31, 0.3) 0%, rgba(83, 165, 31, 0.3) 10%, rgba(83, 165, 31, 0.3) 90%, rgba(255, 255, 255, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-window {
    position: absolute;
    top: 130px;
    left: 50%;
    padding: 0.5rem;
    margin: 0 !important;
    transform: translateX(-50%);
    z-index: 99;
    box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.06),
    0 24px 48px rgba(59,130,246,0.08);
    --message-window-border-color: rgba(226,232,240, 0.8);
    --message-window-bg-color: white;
    border: 1px solid var(--message-window-border-color);
    font-size: 13.5px;
    font-weight: 600;
    background-color: var(--message-window-bg-color);
    border-radius: 15px;
    text-align: center;
    z-index: 1;
}

.login-window {
    padding: 1.5rem !important;
    box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.06),
    0 24px 48px rgba(59,130,246,0.08);
    border: 1px solid rgba(226,232,240, 0.8);
    max-width: 320px;
    max-height: 600px;
    font-size: 13.5px;
    background-color: white;
    border-radius: 20px;
    text-align: center;
    z-index: 1;
    div {
        justify-content: center;
    }
    .subtitle {
        color: #757575;
        margin-bottom: 0.75rem;
        font-weight: 500;
    }
    ul {
        padding: 0;
        margin-bottom: 0;
    }
}

.messagelist,
[class$="errorlist"] {
    margin: 0;
    padding: 0;
    li {
        margin: 0;
    }
    ::marker {
        content: none;
    }
}

[class$="errorlist"] {
    display: inline-block;
    flex-wrap: wrap;
    background-color: #f8d7da;
    padding: 5px 12px;
    border-radius: 10px;
}

.input-wrap {
    position: relative;
    svg {
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}
.input-wrap .input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.18s;
}

.input-wrap input {
    padding-left: 2.5rem;
}

.input-wrap:focus-within .input-icon { 
    color: #419c0c; 
}

#id_login,
#id_password {
    border-radius: 0.5rem;
    border-style: solid;
    border-color: #e2e2e2;
    border-width: 1px;
    font-size: 14px;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    padding-right: 0.5rem;
    background: rgba(236, 236, 236, 0.2);
    width: 16rem;
    height: 2.5rem;
}

#id_login:focus-visible,
#id_password:focus-visible {
    outline-color: rgba(83, 165, 31, 1);
}

#id_remember {
    accent-color: rgba(83, 165, 31, 1);
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

#id_remember:checked {
    opacity: 1;
}

.forgot-btn {
    padding: 0.4rem 1rem;
    margin: 0.5rem 0.2rem;
    border: none;
    border-radius: 6px;
    background-color: #419c0c;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition:  color 0.3s ease, background 0.3s ease;
}

.forgot-btn:hover {
    background-color: #eafddf;
    color: #000000;
}

.error,
.message-window:has(.error) {
    color: red;
    --message-window-border-color: red !important;
    --message-window-bg-color: #ffeaea !important;
}

.warning,
.message-window:has(.warning) {
    color: rgb(255, 174, 0);
    --message-window-border-color: rgb(255, 174, 0) !important;
    --message-window-bg-color: #f8fdad !important;
}

.success,
.message-window:has(.success),
.info,
.message-window:has(.info),
.debug,
.message-window:has(.debug) {
    color: rgb(87, 86, 86);
    --message-window-border-color: rgb(87, 86, 86) !important;
    --message-window-bg-color: white !important;
}

.register-msg {
    display: none !important;
}
