html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url('../img/_1.webp') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(28, 92, 167, 0.88), rgba(245, 193, 7, 0.68));
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-group {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.logo-group img {
    width: 180px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.login-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #1f5faa;
    letter-spacing: 0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: #666666;
    margin-bottom: 25px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #1f5faa;
    box-shadow: 0 0 0 3px rgba(31, 95, 170, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-visibility {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #666666;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(90deg, #1f5faa, #2d76c5);
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #174c88, #2465ab);
    transform: translateY(-1px);
}

.link-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 14px;
    text-decoration: none;
    color: #1f5faa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: #d4a900;
}

.login-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
    color: #777777;
}

@media (max-width: 480px) {
    .login-container {
        margin: 15px;
        padding: 28px 20px;
    }

    .logo-group img {
        width: 150px;
    }

    .login-title {
        font-size: 23px;
    }

    .login-subtitle {
        font-size: 14px;
    }
}