* {
    box-sizing: border-box;
}

html,
body {

    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body.login-body {
    min-height: 100vh;
    background-image: url(../img/backgroundLogin.png) ;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    overflow-x: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    padding: 18px 20px 30px;
    background: linear-gradient(
        to bottom,
        rgba(0, 32, 96, 0.45),
        rgba(0, 52, 130, 0.18),
        rgba(0, 0, 0, 0.08)
    );
}

.login-header {
    position: relative;
    width: 100%;
    min-height: 90px;
}

.login-logo {
    position: absolute;
    top: 0;
    display: flex;
    align-items: flex-start;
}

.login-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.login-logo-left {
    left: 0;
    width: 245px;
}

.login-logo-right {
    right: 0;
    width: 110px;
    justify-content: flex-end;
}

.login-main {
    width: 100%;
    max-width: 980px;
    margin: 10px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-title {
    margin: 50px 0 24px;
    text-align: center;
    font-size: 2.1rem;
    line-height: 1.2;
    font-weight: 700;
    color: #f2f4f8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.login-card {
    width: 100%;
    max-width: 640px;
    padding: 34px 46px 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(180, 190, 205, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(2px);
}

.login-card-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #173d83;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 14px;
}

.form-group-submit {
    margin-top: 18px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 2px solid #89a5c7;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #1b2f55;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: #6f84a3;
    font-weight: 600;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #4d79b8;
    box-shadow: 0 0 0 4px rgba(77, 121, 184, 0.16);
}

.btn-login {
    width: 100%;
    max-width: 290px;
    height: 52px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(to bottom, #ff9800, #f57c00);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(160, 86, 0, 0.8), 0 8px 16px rgba(0, 0, 0, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(160, 86, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.14);
}

.error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ef9a9a;
    background: rgba(255, 235, 238, 0.96);
    color: #b71c1c;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .login-page {
        padding: 16px 16px 24px;
    }

    .login-header {
        min-height: 70px;
    }

    .login-logo-left {
        width: 180px;
    }

    .login-logo-right {
        width: 78px;
    }

    .login-title {
        margin-top: 72px;
        font-size: 1.7rem;
    }

    .login-card {
        padding: 28px 22px 30px;
    }

    .login-card-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .login-logo-left {
        width: 145px;
    }

    .login-logo-right {
        width: 62px;
    }

    .login-title {
        font-size: 1.35rem;
        margin-top: 78px;
        margin-bottom: 20px;
    }

    .login-card {
        padding: 22px 16px 24px;
    }

    .login-card-title {
        font-size: 1.45rem;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        height: 44px;
        font-size: 0.95rem;
    }

    .btn-login {
        height: 48px;
        font-size: 1rem;
    }
}