* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

.container {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 360px;
    position: relative; /* Чтобы контейнер учитывал абсолютное позиционирование */
    /*padding-top: 20px; !* Добавляем небольшой отступ сверху *!*/
}

/* Контейнер заголовка */
.header {
    position: relative;
    width: 100%;
}

/* Контейнер для выбора языка */
.language-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Перемещение переключателя языка в правый верхний угол */
.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /*margin-top: 40px;*/
}

.logo img {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #0056d2;
}

h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.login-password-field {
    position: relative;
}

.login-password-field input {
    padding-right: 42px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.checkbox input {
    margin-right: 10px;
}

.button {
    width: 100%;
    padding: 10px;
    background-color: #0056d2;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

/*при наведении курсора на кнопку*/
.button:hover {
    background-color: #0041a8;
}

.alternative {
    margin: 15px 0;
    font-size: 14px;
    color: #888;
}

.link {
    font-size: 14px;
    color: #0056d2;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color .2s, box-shadow .2s;
}

.google-btn:hover {
    background-color: #f8faff;
    border-color: #d2e3fc;
    box-shadow: 0 1px 3px rgba(60,64,67,.08);
}

.google-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: #888;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.message {
    color: #c62828;
    font-size: 13px;
    margin-top: 5px;
    text-align: left;
}

.error-message {
    background: #ffecec;
    color: #c62828;
    border: 1px solid #f5c2c2;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 18px;
    text-align: center;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 14px;
}

.info-notice {
    background: #e8f4fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    text-align: center;
}

.properties-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.properties-actions button {
    padding: 5px 12px;
    cursor: pointer;
}

.properties-actions button:disabled {
    cursor: default;
    opacity: 0.5;
}
