@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter';
}

input:-webkit-autofill {
    transition: background-color 0.5s ease-out, color 0.5s ease-out;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    background-image: url("../image/background.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* Картинка */
.logo {
    width: 170px;
    position: absolute; 
    top: 10%; 
    left: 50%;
    transform: translate(-50%, 0);
    pointer-events: none;
}

/* Форма логина */
.login-form {
    width: 400px;
    height: 300px;
    background: transparent;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.211);
    color: black;
    border-radius: 20px;
    padding: 30px 40px;
}

/* Заглавная надпись */
.login-form h1 {
    font-size: 22px;
    text-align: center;
}

/* Ввод данных */
.login-form .input-box {
    width: 100%;
    height: 40px;
    margin: 20px 0;
    position: relative;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 3px solid rgb(148, 148, 148);
    border-radius: 15px;
    font-size: 14px;
    color: rgb(0, 0, 0);
    padding-left: 40px;
    transition: border-color 0.3s; /* Плавный переход цвета границы */
}

.input-box input:focus {
    border-color: rgb(0, 0, 0); /* Изменение цвета границы при фокусировке */
}

/* Ввод данных надпись */
.input-box input::placeholder {
    color: rgb(148, 148, 148);
}

/* Иконки ввод данных */
.input-box i {
    position: absolute;
    right: 286px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 27px;
    color: rgb(185, 0, 0);
}

/* Кнопка */
.login-form .btn {
    position: relative;
    margin-left: 25%;
    margin-bottom: 20px;
    width: 50%;
    height: 40px;
    background: rgb(228, 0, 0);
    border: none;
    outline: none;
    border-radius: 20px;
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 18px;
    color: white;
    font-weight: 500;
    transition: 0.5s;
    transform: scale(1);
}

.btn:hover {
    background: rgb(185, 0, 0);
    transition: 0.5s;
    transform: scale(1.1);
}

.btn:active {
    background: rgb(82, 0, 0);
    transform: scale(0.7);
}

.btn:focus {
    outline: none; /* Убираем стандартный контур при фокусировке */
}
