﻿

html, body {
    background-color: #121212 !important;
}

/* Поля ввода */
input[type=text], input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    display: inline-block;
    border: 1px solid #333;
    background: #1e1e1e;
    color: #ffffff;
    border-radius: 15px;
}

    /* Фокус на полях */
    input[type=text]:focus, input[type=password]:focus {
        background-color: #292929;
        outline: none;
    }


/* Только кнопки с кастомным стилем */
.custom-btn {
    background-color: #6200ea;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
}

    .custom-btn:hover {
        background-color: #3700b3;
    }

/* Кнопка отмены */
.cancelbtn {
    background-color: #b00020;
}

    .cancelbtn:hover {
        background-color: #8c0018;
    }

/* Разделение кнопок */
.cancelbtn, .signupbtn {
    float: left;
    width: 50%;
}

/* Контейнер */
.container {
    padding: 16px;
}

/* Модальное окно (фон) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding-top: 50px;
}

/* Модальное окно (форма) */
.modal-content {
    background-color: rgba(0, 0, 0, 0.3);
    margin: 5% auto 15% auto;
    border: 1px solid #444;
    width: 80%;
    border-radius: 10px;
    padding: 20px;
    color: #ffffff;
    backdrop-filter: blur(50px);
}

/* Горизонтальный разделитель */
hr {
    border: 1px solid #444;
    margin-bottom: 25px;
    border-radius: 5px;
}

/* Кнопка закрытия (X) */
.close {
    position: absolute;
    right: 35px;
    top: 15px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
}

    .close:hover,
    .close:focus {
        color: #ff5252;
        cursor: pointer;
    }

/* Очистка обтекания */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Чекбокс */
input[type=checkbox] {
    accent-color: #6200ea;
}

/* Ссылки */
a {
    color: #bb86fc;
}

    a:hover {
        color: #ffffff;
    }

@media screen and (max-width: 300px) {
    .cancelbtn, .signupbtn {
        width: 100%;
    }
}


.profile-preview-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#profilePreview {
    width: 30vw; /* Адаптивная ширина круга */
    max-width: 200px; /* Максимальный размер */
    aspect-ratio: 1 / 1; /* Всегда квадрат */
    border-radius: 50%; /* Круглая форма */
    object-fit: contain; /* НЕ обрезать — показать всю картинку */
    border: 2px solid #0014a8;
    background-color: #1e1e1e; /* На случай прозрачного изображения */
    padding: 5px;
}

textarea {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    display: inline-block;
    border: 1px solid #333;
    background: #1e1e1e;
    color: #ffffff;
    border-radius: 15px;
    resize: vertical; /* можно убрать, если не хочешь изменять размер */
}

    textarea:focus {
        background-color: #292929;
        outline: none;
    }
