Ломается блок авторизации при масштабировании окна в браузере
При масштабировании окна в браузере ломается блок авторизации, перепробовал кучу всего, ничего не выходит.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<style>
body {
font-family: Arial, Helvetica, sans-serif;
background-color: white;
height: 100%;
position: relative;
}
H1 {
font-size: 150%;
font-family: Verdana, Arial, Helvetica, sans-serif;
position: relative;
}
.container {
width: 15%;
padding: 2%;
background: linear-gradient(MediumBlue, SteelBlue);
margin: 3% auto;
border-radius: 7%;
color: white;
text-align: center;
line-height: 40%;
font-size: 60%;
max-width: 100%;
position: relative;
}
input[type=text], input[type=password] {
width: 90%;
padding: 7%;
margin: 0.5% 0 6% 0;
display: inline-block;
border: none;
background: #f1f1f1;
position: relative;
border-radius: 4%;
max-width: 100%;
}
.registerbtn {
background: linear-gradient(LightSkyBlue, DodgerBlue);
color: white;
padding: 5% 10%;
margin: 0 auto;
border: none;
cursor: pointer;
width: 60%;
border-radius: 7%;
font-size: 200%;
margin-bottom: 0.5%;
max-width: 100%;
position: relative;
}
</style>
</head>
<body>
<form action="/hello.php">
<div class="container">
<h1>C3000-HUB</h1>
<p>s/n MadiHub</p>
<input type="text" placeholder="login" name="login" required>
<input type="password" placeholder="password" name="password" required>
<button type="submit" class="registerbtn">Войти</button>
</div>
</form>
</body>
</html>
Скрин по ссылке: https://dropmefiles.com/8dv4D