/* Основные стили для страницы */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}
.container {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}
h1 {
    font-size: 24px;
    margin-bottom: 20px;
}
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
input[type="text"], input[type="password"] {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}
input[type="text"]:focus, input[type="password"]:focus {
    border-color: #007BFF; /* Цвет обводки при фокусе */
}
button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #0056b3; /* Цвет кнопки при наведении */
}
button:disabled{
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}
button:focus {
    outline: 1px dotted #212121;
    outline: 5px auto -webkit-focus-ring-color;
}
button + button {
    margin-inline-start: 30px;
}
.result {
    margin-top: 20px;
    font-size: 18px;
    color: green; /* Цвет текста для результата */
    transition: opacity 0.5s ease; /* Для плавного исчезновения */
    position: relative;
}
.result a:before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: calc(100% + 30px);
}
.alert {
    display: none; /* Скрыть сообщения об ошибках по умолчанию */
    margin-top: 10px;
    font-size: 16px;
    transition: opacity 0.5s ease;
}
.alert-good {
    color: green; /* Цвет успешного сообщения */
}
.alert-bad {
    color: red; /* Цвет сообщения об ошибке */
}
#login-form, #main-content {
    display: none; /* Скрыть контент и форму входа по умолчанию */
}
#qrCode {
    cursor: pointer; /* Указатель для QR-кода */
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* Изначально скрыт */
    transition: opacity 0.5s ease; /* Для плавного исчезновения */
}
