.login-form-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-grow: 1;
    /*margin: 0 15px;*/
}

.login-form {
    width: 200px;
    height: fit-content;
    padding: 20px;
    /*background-color: #000;*/
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    /*box-shadow: inset 0 0 20px rgba(0, 153, 255, 0.6), inset 0 0 5px rgba(0, 153, 255, 0.4);*/
    border-image: linear-gradient(45deg, #99CCFF, #3399FF) 1;
}

.form-header {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.form-group {
    text-align: center;
}

.form-group.margin-top {
    margin-top: 15px;
}

.form-group.margin-bottom {
    margin-bottom: 15px;
}

.form-group a {
    color: white;
    text-decoration: none;
}

.form-group a:hover {
    text-decoration: underline;
}

.form-group label {
    display: none;
    /*margin-bottom: 5px;*/
}

.form-group input {
    /*width: 100%;*/
    /*font-size: 16px;*/
    /*padding: 10px;*/
    /*border: 1px solid #ccc;*/
    /*border-radius: 5px;*/
    width: calc(100% - 4px);
    padding-top: 10px;
    padding-bottom: 10px;
    text-indent: 10px;
    /*margin-bottom: 20px;*/
    /*border: 1px solid #6699CC;*/
    border: 1px solid #666666;
    border-radius: 0;
    font-size: 1rem;
    /*background: #003366;*/
    /*background: #000000;*/
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #3399FF;
    box-shadow: 0 0 5px #3399FF;
}

.form-group input.error {
    border-color: red;
    box-shadow: 0 0 5px red;
}

.button-black-background {
    background-color: black;
}

.form-group button {
    /*width: 100%;*/
    /*padding: 10px;*/
    /*background: #007BFF;*/
    /*color: white;*/
    /*border: none;*/
    /*border-radius: 4px;*/
    /*cursor: pointer;*/
    /*background-color: rgba(0, 153, 255, 0.1);*/
    /*background-image: -webkit-linear-gradient(#000000, #000000);*/
    background-color: #000;
    /*margin-bottom: 2px;*/
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 0;
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0, 153, 255, 0.6), inset 0 0 40px rgba(0, 153, 255, 0.6);
    border: 1px solid transparent;
    border-image: linear-gradient(45deg, #99CCFF, #3399FF, #0099FF, #6699CC, #336699, #006699) 1;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group button:hover {
    /*background-color: rgba(255, 255, 255, 0.1);*/
    background-color: rgba(0, 153, 255, 0.2);
    /*background: #0056b3;*/
}

.captcha-image-container {
    display: flex;
    flex-wrap: wrap;
}

.button-captcha-reload {
    /*flex: 1;*/
    /*width: 40px;*/
    /*height: 40px;*/
}

.captcha-container {
    position: relative;
    display: inline-block;
}

.captcha-image {
    width: 100%;
    /*width: 100%;*/
    /*flex: 1;*/
    /*width: 200px;*/
    /*height: 40px;*/
}

.captcha-reload-icon {
    background: url('https://static.wgame.space/icons/general/reload.svg') no-repeat center;
    background-size: contain;
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.captcha-reload-icon:hover {
    opacity: 1;
}

.button-captcha-reload {
    /*width: 40px;*/
}

/* Стиль для красной обводки */
.error {
    border: 2px solid red;
}

.error-text {
    word-break: break-word;
    display: none;
    /*padding: 10px;*/
    text-align: center;
    color: peru;
    /*background-color: rgba(0, 0, 0, 0.5);*/
}

.error-text.visible {
    display: block;
}

.error-text.success {
    color: lawngreen;
}

/* Стиль для всплывающей подсказки */
.tooltip {
    text-align: left;
    display: none;
    position: absolute;
    background-color: #f44336;
    color: white;
    padding: 5px 20px 5px 5px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

/* Показ подсказки */
.tooltip.show {
    display: block;
}

.tooltip::after {
    content: "×";
    position: absolute;
    top: 2px;
    right: 4px;
    color: white;
    font-size: 12px;
}