/* =========================================================
   МОДАЛКИ
   ========================================================= */


/* =========================================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ========================================================= */

.modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(17, 24, 39, .35);

    backdrop-filter: blur(4px);

}


/* =========================================================
   ОКНО МОДАЛКИ
   ========================================================= */

.modal-window {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 520px;

    background: #FFFFFF;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(17, 24, 39, .18);

    overflow: hidden;

}


/* =========================================================
   СЕРАЯ ПОЛОСКА
   ========================================================= */

.modal-header-gray {

    width: 100%;

    height: 40px;

    background: #6B7280;

}


/* =========================================================
   СОДЕРЖИМОЕ
   ========================================================= */

.modal-content {

    padding: 28px 30px 30px;

}


/* =========================================================
   ТЕКСТ
   ========================================================= */

.modal-text {

    margin: 0;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 400;

    line-height: 1.5;

    color: #374151;

    text-align: justify;

    white-space: pre-line;
}

.modal-text_simple {

    margin: 0;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 400;

    line-height: 1.5;

    color: #374151;

    text-align: justify;

}


/* =========================================================
   ТЕКСТ
   ========================================================= */

.modal-text-n {

    margin: 0;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 400;

    line-height: 1.5;

    color: #374151;

    text-align: justify;

}


/* =========================================================
   ТЕКСТ — ПО ЦЕНТРУ
   ========================================================= */

.modal-text-center {

    margin: 0;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 400;

    line-height: 1.5;

    color: #374151;

    text-align: center;

    white-space: pre-line;
}


/* =========================================================
   КНОПКИ
   ========================================================= */

.modal-actions {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 50px;

}

/* =========================================================
   СЕРАЯ КНОПКА МОДАЛКИ
   ========================================================= */

.modal-grey-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 17px;

    background: #6B7280;

    color: #FFFFFF;

    border: 1px solid #6B7280;

    border-radius: 8px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    width: 210px;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(17, 24, 39, .12);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


/* =========================================================
   СЕРАЯ КНОПКА МОДАЛКИ — HOVER
   ========================================================= */

.modal-grey-button:hover {

    background: #4B5563;

    border-color: #4B5563;

    color: #FFFFFF;

    box-shadow:
        0 4px 10px rgba(17, 24, 39, .18);

    transform: translateY(-1px);

}


/* =========================================================
   СЕРАЯ КНОПКА МОДАЛКИ — ACTIVE
   ========================================================= */

.modal-grey-button:active {

    transform: translateY(0);

    box-shadow:
        0 1px 3px rgba(17, 24, 39, .12);

}


/* =========================================================
   СЕРАЯ КНОПКА МОДАЛКИ — FOCUS
   ========================================================= */

.modal-grey-button:focus-visible {

    outline: 2px solid #6B7280;

    outline-offset: 2px;

}


/* =========================================================
   СИНИЙ СТИЛЬ
   ========================================================= */


/* =========================================================
   СИНЯЯ ПОЛОСКА
   ========================================================= */

.modal-header-blue {

    width: 100%;

    height: 40px;

    background: var(--blue);

}


/* =========================================================
   СИНЯЯ КНОПКА МОДАЛКИ
   ========================================================= */

.modal-blue-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 17px;

    background: var(--blue);

    color: #FFFFFF;

    border: 1px solid var(--blue);

    border-radius: 8px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    width: 210px;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(30, 64, 175, .15);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


/* =========================================================
   СИНЯЯ КНОПКА МОДАЛКИ — HOVER
   ========================================================= */

.modal-blue-button:hover {

    background: var(--blue-dark);

    border-color: var(--blue-dark);

    color: #FFFFFF;

    box-shadow:
        0 4px 10px rgba(30, 64, 175, .20);

    transform: translateY(-1px);

}


/* =========================================================
   СИНЯЯ КНОПКА МОДАЛКИ — ACTIVE
   ========================================================= */

.modal-blue-button:active {

    transform: translateY(0);

    box-shadow:
        0 1px 3px rgba(30, 64, 175, .15);

}


/* =========================================================
   СИНЯЯ КНОПКА МОДАЛКИ — FOCUS
   ========================================================= */

.modal-blue-button:focus-visible {

    outline: 2px solid var(--blue);

    outline-offset: 2px;

}


/* =========================================================
   ЗНАЧЕНИЕ В МОДАЛКЕ
   ========================================================= */

.modal-value {

    color: var(--blue);

}

/* =========================================================
   ПОЛЕ СМЕНЫ ПАРОЛЯ
   ========================================================= */

.change-password-field {

    width: 420px;

    padding: 9px 14px;

    box-sizing: border-box;

    border: 1px solid #D1D5DB;

    border-radius: 8px;

    background: #FFFFFF;

    color: #374151;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.3;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.change-password-field::placeholder {

    color: #6B7280;

}


/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

.change-password-field:hover {

    border-color: #9CA3AF;

}


/* =========================================================
   ФОКУС
   ========================================================= */

.change-password-field:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 2px rgba(59, 130, 246, .12);

}
/* =========================================================
   ПОЛЯ ДЛЯ ACCOUNT - CHANGE EMAIL
   ========================================================= */

.change-email-field {

    width: 350px;

    padding: 9px 14px;

    box-sizing: border-box;

    border: 1px solid #D1D5DB;

    border-radius: 8px;

    background: #FFFFFF;

    color: #374151;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.3;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.change-email-field::placeholder {

    color: #6B7280;

}


/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

.change-email-field:hover {

    border-color: #9CA3AF;

}


/* =========================================================
   ФОКУС
   ========================================================= */

.change-email-field:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 2px rgba(59, 130, 246, .12);

}

/* =========================================================
   ПЕРЕНОС
   ========================================================= */
.modal-text-n {
    white-space: pre-line;
}



/* =========================================================
   LOGIN
   ========================================================= */


/* =========================================================
   ОКНО LOGIN
   ========================================================= */

.login-window {

    position: relative;

    width: 100%;

    max-width: 420px;

    background: #FFFFFF;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(17, 24, 39, .18);

    overflow: hidden;

}


/* =========================================================
   СОДЕРЖИМОЕ LOGIN
   ========================================================= */

.login-content {

    padding: 28px 30px 30px;

}


/* =========================================================
   ЗАГОЛОВОК LOGIN
   ========================================================= */

.login-title {

    margin: 0 0 28px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 20px;

    font-weight: 500;

    line-height: 1.3;

    color: #374151;

    text-align: center;

}

.login-title-blue {

    margin: 0 0 28px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 20px;

    font-weight: 500;

    line-height: 1.3;

    color: var(--blue);

}


/* =========================================================
   ПОЛЕ LOGIN
   ========================================================= */

.login-field {

    width: 100%;

    padding: 9px 14px;

    box-sizing: border-box;

    border: 1px solid #D1D5DB;

    border-radius: 8px;

    background: #FFFFFF;

    color: #374151;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.3;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


/* =========================================================
   LOGIN — НАВЕДЕНИЕ
   ========================================================= */

.login-field:hover {

    border-color: #9CA3AF;

}


/* =========================================================
   LOGIN — ФОКУС
   ========================================================= */

.login-field:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 2px rgba(59, 130, 246, .12);

}


/* =========================================================
   LOGIN — ПОДПИСЬ ПОЛЯ
   ========================================================= */

.login-label {

    display: block;

    margin-bottom: 7px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.3;

    color: #374151;

}


/* =========================================================
   LOGIN — ГРУППА ПОЛЯ
   ========================================================= */

.login-field-group {

    margin-bottom: 18px;

}


/* =========================================================
   LOGIN — ОШИБКА
   ========================================================= */

.login-error {

    margin-bottom: 18px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.4;

    color: #DC2626;

    text-align: center;

}


/* =========================================================
   LOGIN — ССЫЛКИ
   ========================================================= */

.login-links {

    margin-top: 24px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 16px;

    line-height: 1.5;

    color: #374151;

    text-align: center;

}


/* =========================================================
   LOGIN — ССЫЛКА
   ========================================================= */

.login-links a {

    color: var(--blue);

    text-decoration: none;

}


.login-links a:hover {

    text-decoration: underline;

}


/* =========================================================
   LOGIN — СТРАНИЦА
   ========================================================= */

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(17, 24, 39, .35);

    backdrop-filter: blur(8px);

}


/* =========================================================
   LOGIN — МАТОВОЕ СТЕКЛО
   ========================================================= */

.login-page::before {

    content: "";

    position: fixed;

    inset: 0;

    background: rgba(255, 255, 255, .18);

    pointer-events: none;

}

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(17, 24, 39, .35);

    backdrop-filter: blur(8px);

}


/* =========================================================
   REGISTRATION
   ========================================================= */

.registration-window {
    max-width: 900px;
}

.registration-content {
    width: 100%;
}

.registration-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.registration-column {
    min-width: 0;
}

.registration-column-title {
    margin-bottom: 24px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #374151;
    text-align: center;
}

.registration-field-group {
    margin-bottom: 18px;
}

.registration-field-group .change-password-field {
    width: 100%;
}

.registration-column .modal-text-center {
    margin-bottom: 7px;
}


/* =========================================================
   FORM PASSWORD_RESET
   ========================================================= */
   
.reset-email-field input {
    width: 100%;
    padding: 9px 14px;
    box-sizing: border-box;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #374151;
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.reset-email-field input:hover {
    border-color: #9CA3AF;
}

.reset-email-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .12);
}
