/*******************************************************
 *  0. Общие стили
 *******************************************************/
/* Сброс */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Всем шрифт Inter */
html,
body,
input,
button,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    background-color: #080808;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 1.6rem;
    line-height: 2.4rem;
}

/*******************************************************
 *  Логотип над "Добро пожаловать"
 *******************************************************/
.logo-img {
    width: 120px;
    /* на ваш вкус */
    height: auto;
    margin-bottom: 1.6rem;
}

/*******************************************************
 *  1. Фоновые градиенты (как chatpool)
 *     + затемнение на весь низ экрана
 *******************************************************/
/* 
   Используем 2 псевдоэлемента body::before, body::after.
   Один для радиальных градиентов,
   другой для линейного затемнения снизу.
*/
/* Рад. градиент справа */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(circle at right 15% top 20%, rgba(26, 136, 172, 0.12), rgba(26, 136, 172, 0) 70%);
}

/* Рад. градиент слева + линейное затемнение снизу */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        /* Рад. градиент слева */
        radial-gradient(circle at left 15% top 20%, rgba(0, 113, 146, 0.15), rgba(0, 113, 146, 0) 70%),
        /* Линейный градиент от низа экрана кверху */
        linear-gradient(0deg, #080808, rgba(8, 8, 8, 0));
}

::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #2f3135;
    border-radius: 5px;
}

/*******************************************************
 *  2. Основная структура (форма с прозрачным фоном)
 *******************************************************/
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-container {
    /* Полупрозрачный фон, как в "introduction__laptop" стиле */
    background: hsla(0, 0%, 100%, 0.05);
    border: 0.1rem solid hsla(0, 0%, 100%, 0.1);
    border-radius: 2.4rem;
    width: 36rem;
    padding: 3rem 2.5rem;
    overflow: hidden;
    position: relative;
}

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

/*******************************************************
 *  3. Форма Email
 *******************************************************/
.welcome-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.welcome-text {
    font-size: 1.8rem;
    color: #8c8d90;
    margin-bottom: 2.4rem;
}

.input-block {
    margin-bottom: 2.4rem;
    text-align: left;
}

.input-block label {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #b9babe;
}

.input-block input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 0.1rem solid #2f3135;
    border-radius: 0.6rem;
    padding: 1.2rem;
    color: #fff;
    font-size: 1.6rem;
    transition: border-color 0.2s;
}

.input-block input::placeholder {
    color: #8c8d90;
}

.input-block input:focus {
    border-color: #1a8aac;
    outline: none;
}

.submit-button {
    width: 100%;
    background-color: #017ea3;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    padding: 1.2rem 0;
    margin-bottom: 2.4rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #1a8aac;
    cursor: pointer;
}

.submit-button:active {
    background-color: #009369;
    transform: scale(0.98);
}

/*******************************************************
 *  4. Соц. иконки
 *******************************************************/
.social-icons {
    display: flex;
    justify-content: center;
    /* можно поменять при желании */
    gap: 1.2rem;
    margin-bottom: 2.4rem;
    margin-top: 2.4rem;
}

/* Каждая иконка */
.social-icons a {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0.1rem solid #2f3135;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
}

/* Сама иконка Font Awesome */
.social-icons a .fa-brands {
    font-size: 1.8rem;
    color: #fff;
    z-index: 1;
    transition: color 0.3s;
}

/* Градиенты на псевдоэлементах */
.social-icons a::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at left 15% top 20%, rgba(0, 113, 146, 0.15), rgba(0, 113, 146, 0) 70%);
    transition: top 0.3s;
    z-index: 0;
}

.social-icons a::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right 15% top 20%, rgba(26, 136, 172, 0.12), rgba(26, 136, 172, 0) 70%);
    transition: top 0.3s;
    z-index: 0;
}

/* При ховере — подсветка */
.social-icons a:hover {
    transform: scale(1.1);
    border-color: #017ea3;
}

.social-icons a:hover::after {
    top: 0;
}

.social-icons a:hover .fa-brands {
    color: #fff;
}

/*******************************************************
 *  5. Форма OTP
 *******************************************************/
#otp-form {
    display: none;
    /* скрыто по умолчанию */
}

.otp-Form {
    width: 100%;
    max-width: 320px;
    background: transparent;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    margin: 0 auto;
    border-radius: 1rem;
}

.otp-Form h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.otp-Form span {
    font-size: 1.5rem;
    color: #b9babe;
    text-align: center;
    line-height: 1.4;
}

.inputContainer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.otp-input {
    width: 48px;
    height: 60px;
    font-size: 2.4rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 0.4rem;
    outline: 2px solid rgba(0, 0, 0, 0.3);
    transition: outline 0.3s, background-color 0.3s;
}

.otp-input:focus-visible {
    outline: 2px solid #017ea3;
}

.otp-input.filled {
    outline: 2px solid rgb(7, 192, 99);
}

/* Кнопка «Подтвердить» */
.verify-button {
    background-color: #017ea3;
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.2rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: none;
}

.verify-button:hover {
    background-color: #1a8aac;
}

.verify-button:active {
    background-color: #009369;
    transform: scale(0.98);
}

/* «Код не пришёл?» */
#resendNote {
    font-size: 1.4rem;
    color: #696a6e;
    margin-top: -1rem;
}

/* «Отправить код повторно» */
.resend-button {
    background-color: rgba(0, 0, 0, 0.3);
    border: 0.1rem solid #2f3135;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    padding: 0.8rem 2rem;
    transition: background-color 0.3s;
    cursor: pointer;
}

.resend-button:hover {
    background-color: #2f3135;
}

.resend-button:active {
    transform: scale(0.98);
}

/* Убираем стрелочки у type=number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/*******************************************************
 *  6. Ссылки “Правила...” / “Политика...”
 *******************************************************/
.legal-links {
    text-align: center;
    margin: 2rem auto;
}

.legal-links a {
    font-size: 1.4rem;
    color: #1a8aac;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #017ea3;
}

.legal-links a:active {
    color: #009369;
    transform: scale(0.98);
}

.separator {
    margin: 0 1rem;
    color: #696a6e;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/*******************************************************
 *  7. Адаптив
 *******************************************************/
@media (max-width: 450px) {
    .form-container {
        width: calc(100% - 4rem);
        padding: 3rem 1.6rem;
    }

    .otp-input {
        width: 44px;
        height: 56px;
        font-size: 2rem;
    }

    .otp-Form h1 {
        font-size: 1.8rem;
    }
}

.offer-container,
.bug-container {
    border-width: 1px;
    border-style: solid;
    display: flex;
    flex-direction: column;
    right: 1.75rem;
    z-index: 100;
    animation: 0.5s ease-in-out 0s 1 normal forwards running animation-1jwk0qi;
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-color: rgba(245, 245, 245, 0.2);
    border-radius: 1rem;
    position: absolute;
    width: 16rem;
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 1s ease-in-out forwards;
}

.offer-container {
    bottom: 1.75rem;
    background: linear-gradient(30deg, rgba(14, 86, 88, 0.9), rgba(14, 88, 67, 0.9)) rgba(6, 78, 59, 0.8);
    ;
}

.bug-container {
    top: 1.75rem;
    background: linear-gradient(30deg, rgba(254, 86, 88, 0.9), rgba(254, 88, 67, 0.9)) rgba(246, 78, 59, 0.8);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.offer-question,
.bug-question {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(245, 245, 245);
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.offer-message,
.bug-message {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgb(245, 245, 245);
    margin-right: 1rem;
    line-height: 1.6;
}

.offer-button,
.bug-button {
    font-family: inherit;
    white-space: nowrap;
    outline: none;
    box-shadow: unset;
    border-style: solid;
    text-overflow: ellipsis;
    overflow: hidden;
    background: transparent;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: fit-content;
    padding: 0px 0.5rem;
    height: 2rem;
    transition: 0.25s;
    font-size: 0.875rem;
    line-height: 1rem;
    border-width: 0.0625rem;
    color: rgb(245, 245, 245);
    border-radius: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin-top: 1rem;
    font-weight: 400;
    border-color: rgba(245, 245, 245, 0.2);
}

.offer-icon,
.bug-icon {
    -webkit-box-flex: 0;
    flex-grow: 0;
    flex-shrink: 1;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    margin-left: 0.5rem;
}

.offer-close-button,
.bug-close-button {
    width: min-content;
    display: inline-flex;
    color: rgba(245, 245, 245, 0.75);
    background: transparent;
    height: 1rem;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    top: 0.75rem;
    right: 0.75rem;
    transition: opacity 2s;
    opacity: 0.3;
    position: absolute;
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}