/* ========================================
   IK NEWS — AUTH PAGE
   ======================================== */

.ik-auth-header {
    width: 100%;
    height: 80px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.ik-auth-header__inner {
    width: calc(100% - 60px);
    max-width: 1400px;
    height: 80px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ========================================
   ЛОГОТИП
   ======================================== */

.ik-auth-header__logo {
    display: flex;
    align-items: center;

    width: 190px;
    height: 45px;

    flex-shrink: 0;
}

.ik-auth-header__logo img {
    display: block;

    width: 190px !important;
    height: 45px !important;

    max-width: 190px !important;
    max-height: 45px !important;

    object-fit: contain;
}


/* ========================================
   СОЦСЕТИ
   ======================================== */

.ik-auth-header__socials {
    display: flex;
    align-items: center;

    gap: 10px;

    height: 50px;

    flex-shrink: 0;
}


/* Общий контейнер иконки */

.ik-auth-social {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    text-decoration: none;
}


/* Общие настройки изображения */

.ik-auth-social img {
    display: block;

    object-fit: contain;

    max-width: none !important;
    max-height: none !important;
}


/* ========================================
   РАЗМЕРЫ КАЖДОЙ ИКОНКИ
   МЕНЯЕМ ЗДЕСЬ
   ======================================== */


/* VK */

.ik-auth-social--vk {
    width: 46px;
    height: 46px;
}

.ik-auth-social--vk img {
    width: 46px !important;
    height: 46px !important;
}


/* TELEGRAM */

.ik-auth-social--telegram {
    width: 38px;
    height: 38px;
}

.ik-auth-social--telegram img {
    width: 38px !important;
    height: 38px !important;
}


/* OK */

.ik-auth-social--ok {
    width: 46px;
    height: 46px;
}

.ik-auth-social--ok img {
    width: 46px !important;
    height: 46px !important;
}


/* MAX */

.ik-auth-social--max {
    width: 38px;
    height: 38px;
}

.ik-auth-social--max img {
    width: 38px !important;
    height: 38px !important;
}


/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */

@media (max-width: 700px) {

    .ik-auth-header {
        height: 68px;
    }

    .ik-auth-header__inner {
        width: calc(100% - 30px);
        height: 68px;
    }

    .ik-auth-header__logo,
    .ik-auth-header__logo img {
        width: 150px !important;
        height: 35px !important;
    }

    .ik-auth-header__socials {
        gap: 6px;
    }

    .ik-auth-social--vk,
    .ik-auth-social--vk img {
        width: 34px !important;
        height: 34px !important;
    }

    .ik-auth-social--telegram,
    .ik-auth-social--telegram img {
        width: 34px !important;
        height: 34px !important;
    }

    .ik-auth-social--ok,
    .ik-auth-social--ok img {
        width: 34px !important;
        height: 34px !important;
    }

    .ik-auth-social--max,
    .ik-auth-social--max img {
        width: 34px !important;
        height: 34px !important;
    }

}

/* ========================================
   IK NEWS — AUTH SYSTEM
   ======================================== */

.ik-auth {
    width: min(100% - 30px, 480px);
    margin: 50px auto 70px;
}


/* Переключатель */

.ik-auth-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1px solid #dddddd;
}

.ik-auth-tab {
    flex: 1;

    height: 50px;

    border: 0;
    border-bottom: 3px solid transparent;

    background: transparent;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    color: #777777;

    cursor: pointer;
}

.ik-auth-tab.is-active {
    color: #111111;
    border-bottom-color: #ed1c24;
}


/* Формы */

.ik-auth-panel {
    display: none;

    padding: 35px;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    box-sizing: border-box;
}

.ik-auth-panel.is-active {
    display: block;
}

.ik-auth-panel h2 {
    margin: 0 0 30px;

    font-size: 30px;
    line-height: 1.2;

    color: #111111;
}


/* Описание */

.ik-auth-description {
    margin: -10px 0 25px;

    font-size: 14px;
    line-height: 1.5;

    color: #666666;
}


/* Поля */

.ik-auth-form p {
    margin: 0 0 20px;
}

.ik-auth-form label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #222222;
}

.ik-auth-form input {
    display: block;

    width: 100%;
    height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d7d7d7;

    background: #ffffff;

    font-family: inherit;
    font-size: 16px;

    color: #111111;

    outline: none;
}

.ik-auth-form input:focus {
    border-color: #ed1c24;
}


/* Кнопка */

.ik-auth-form button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 48px;

    margin-top: 5px;

    border: 0;

    background: #ed1c24;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

.ik-auth-form button:hover {
    background: #c9141b;
}


/* Забыли пароль */

.ik-auth-forgot {
    display: block;

    margin: 20px auto 0;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ed1c24;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
}

.ik-auth-forgot:hover {
    text-decoration: underline;
}


/* Сообщения */

.ik-auth-error {
    margin-bottom: 20px;

    padding: 14px 16px;

    border-left: 4px solid #ed1c24;

    background: #fff1f1;

    color: #b00000;

    font-size: 14px;
}

.ik-auth-success {
    margin-bottom: 20px;

    padding: 14px 16px;

    border-left: 4px solid #2e9d50;

    background: #f0fff4;

    color: #20733a;

    font-size: 14px;
}


/* Телефон */

@media (max-width: 600px) {

    .ik-auth {
        width: calc(100% - 30px);

        margin: 30px auto 50px;
    }

    .ik-auth-panel {
        padding: 25px 20px;
    }

    .ik-auth-panel h2 {
        font-size: 26px;
    }

}


/* ========================================
   AUTH NAVIGATION
   ======================================== */

.ik-auth-links {
    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;

    margin-top: 18px;

    gap: 5px;

    text-align: center;
}


.ik-auth-link {
    display: block;

    width: 100%;

    padding: 2px 0;

    color: #222222 !important;

    font-family: inherit;

    font-size: 15px;

    line-height: 1.5;

    text-decoration: none !important;
}


.ik-auth-link span {
    color: #555555 !important;
}


.ik-auth-link strong {
    color: #222222 !important;

    font-weight: 600;
}


.ik-auth-link:hover,
.ik-auth-link:hover span,
.ik-auth-link:hover strong {
    color: #ed1c24 !important;
}


/* ========================================
   УБИРАЕМ ЗАГОЛОВОК САМОЙ WORDPRESS-СТРАНИЦЫ
   ======================================== */

.ik-auth-page-title {
    display: none !important;
}


/* ========================================
   AUTH — МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */

@media (max-width: 600px) {

    .ik-auth-links {
        gap: 6px;
    }

    .ik-auth-link {
        font-size: 14px;
    }

}

/* ========================================
   ССЫЛКИ ПОД ФОРМОЙ АВТОРИЗАЦИИ
   ======================================== */

.ik-auth-mode .ik-page__content a {
    color: #555555 !important;
    text-decoration: none !important;
}

.ik-auth-mode .ik-page__content a:hover {
    color: #ed1c24 !important;
}

.ik-auth-mode .ik-page__content strong {
    color: #222222 !important;
    font-weight: 700;
}


/* Каждый абзац со ссылками — отдельной строкой */

.ik-auth-mode .ik-page__content p:has(a) {
    text-align: center;
}


/* Если обе ссылки находятся в одном абзаце —
   каждая становится отдельной строкой */

.ik-auth-mode .ik-page__content p:has(a) a {
    display: block;
    margin-top: 7px;
}


/* Убираем лишнее синее оформление WordPress */

.ik-auth-mode .ik-page__content a:visited {
    color: #555555 !important;
}


/* Ссылка должна находиться непосредственно
   под формой */

.ik-auth-mode .ik-page__content {
    color: #555555;
}