:root {
    --bs-primary: #133e87;
}
html,
body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
}
body {
    background: url("https://cdn.pixabay.com/photo/2020/04/26/12/54/truck-5095088_1280.jpg")
        center/cover no-repeat fixed;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}
.brand-name {
    position: fixed;
    top: 50px;
    left: 50px;
    right: auto;
    max-width: calc(100% - 40px);
    padding-right: 10px;
    z-index: 11;
    color: white;
    font-weight: 700;
    user-select: none;
    white-space: nowrap;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}
.brand-name .big {
    font-size: 2.6rem;
    line-height: 1.1;
    display: block;
}
.brand-name .small {
    font-size: 1.6rem;
    line-height: 1.1;
    display: block;
    font-weight: 600;
}
.login-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 40%;
    max-width: 420px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    z-index: 5;
    color: #222;
}
.login-panel h2 {
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-align: center;
}
label.form-label {
    font-weight: 600;
    color: #444;
}
.form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    color: #222;
}
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 8px rgba(19, 62, 135, 0.4);
    background-color: #f9f9f9;
    outline: none;
}
.btn-primary {
    background-color: var(--bs-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.75rem;
    width: 100%;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
    margin-top: 1rem;
}
.btn-primary:hover {
    background-color: #1a4ba2;
    box-shadow: 0 0 12px rgba(19, 62, 135, 0.6);
}
.social-links {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 11;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    max-width: calc(100% - 40px);
}
.social-links a {
    color: white;
    background-color: rgba(19, 62, 135, 0.85);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1.6rem;
}
.social-links a:hover {
    background-color: #1a4ba2;
}
@media (max-width: 991.98px) {
    body,
    html {height: 100%;}
    body {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .login-panel {
        position: relative;
        width: 90%;
        max-width: 400px;
        height: auto;
        border-radius: 1rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        padding: 2rem 1.5rem;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.95);
    }
    .btn-home {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 11;
    }
    .brand-name {
        top: 80px;
        left: 20px;
        max-width: calc(100% - 40px);
        font-size: 1.6rem !important;
        padding-right: 10px;
        white-space: normal;
    }
    .brand-name .big {
        font-size: 1.8rem !important;
    }
    .brand-name .small {
        font-size: 1.2rem !important;
    }
    .social-links {
        bottom: 20px;
        left: 20px;
        padding-left: 10px;
        gap: 1rem;
        max-width: calc(100% - 40px);
    }
    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
        padding: 0.4rem;
    }
    body::before {
        background: rgba(0, 0, 0, 0.7);
    }
}
