Содержимое input сдвигается влево при нажатии (фокусе/заполнении). Браузер Safari
Всем доброго времени суток. Столкнулся с такой неприятностью: Браузер Safari, содержимое полей ввода текста (text/password) сдвигается влево при нажатии, фокусе или вводе самого текста. Даже здесь - нажимаю "выполнить код", тот же результат
Открываю эту же страницу в Firefox - все в норме. подскажите, пожалуйста, что не так. код прикрепил.
PS
Фон не загружается здесь, но думаю дело не в нем))
вот ссылка на видео экрана, то, что вижу я видео
/* Обнуление стандартных параметров страницы */
* {
padding: 0;
margin: 0;
border: 0;
}
*,
*::before,
*::after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
:focus,
:active {
outline: none;
}
a:focus,
a:active {
outline: none;
}
nav,
footer,
header,
aside {
display: block;
}
html,
body {
height: 100%;
width: 100%;
font-size: 100%;
line-height: 1;
font-size: 10px;
-moz-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
input,
button,
textarea {
font-family: inherit;
}
input::-ms-clear {
display: none;
}
input::-webkit-search-cancel-button {
display: none;
}
input::-webkit-calendar-picker-indicator {
display: none;
}
button {
cursor: pointer;
}
button::-moz-focus-inner {
padding: 0;
border: 0;
}
a,
a:visited {
text-decoration: none;
color: inherit;
}
a:hover {
text-decoration: none;
}
ul li {
list-style: none;
}
img {
vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: 400;
}
body {
background: url(../img/background.jpg) center / cover no-repeat;
padding: 0 10%;
color: white;
font-family: 'Courier New', Courier, monospace;
height: 100vh;
position: relative;
}
/* Sign in form */
.sign-in_form {
width: 52%;
min-width: 32.8rem;
height: 60vh;
min-height: fit-content;
padding: 1rem;
background: linear-gradient(124.11deg, rgba(27, 27, 27, 0.8) -3.51%, rgba(0, 0, 0, 0.3) 76.48%);
border-width: 0px 2px 2px 0px;
border-style: solid;
border-color: rgba(27, 27, 27, 0.4);
box-shadow: 4px 4px 10px -1px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
border-radius: 50px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.sign-in_form h1 {
font-size: 4.8rem;
margin-bottom: 2rem;
}
.sign-in_form span {
font-size: 1.2rem;
opacity: .5;
}
.sign-in_form form {
padding: 2.4rem 0;
}
.sign-in_form input {
background: none;
padding: 3.2rem 0;
text-align: center;
color: white;
font-size: 1.8rem;
/* border: 1px solid white; */
}
.sign-in_form input:hover::placeholder {
color: #72D9FB;
}
hr {
border-bottom: 1px solid white;
opacity: 0.1;
}
.sign-in_form input::placeholder {
text-align: center;
color: white;
opacity: 0.5;
}
.sign-in_form a {
font-size: 1.4rem;
}
#forgot {
margin-bottom: 3rem;
}
.sign-in_form a:hover {
color: #72D9FB;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/default.css">
<title>Web developer | The beginner</title>
</head>
<body>
<div class="sign-in_form">
<h1>Sign in</h1>
<span>type and press enter</span>
<form action="#" method="">
<input type="text" id="username" placeholder="User name" tabindex="1" required>
<hr>
<input type="password" id="userpass" placeholder="Password" minlength="8" tabindex="2" required>
</form>
<a href="#" target="_blank" id="forgot" tabindex="3">forgot password</a>
<a href="#" target="_blank" id="sign_in" tabindex="4">sign up</a>
</div>
</body>
</html>