﻿/* Кнопка "Войти" на страницах, которые рендерит бэк (SLT-13360).

   Повторяет primary-кнопку размера large из sletat-ui-components2 — ту же,
   что стоит в попапе входа. Свой CSS, а не компонент DS, потому что страницы
   на WebForms не умеют подключать React-компоненты. Значения взяты из темы
   пакета: brandYellow #FFCA00, brandYellowBright #FFD709, brandBlack #313140,
   borderRadius main 8px, fontButtonM 1rem/1.25/600. */

.slt-login-button {
    position: relative;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 56px;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    background: #FFCA00;
    color: #313140;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

/* Заливка, расползающаяся снизу при наведении, — поведение primary-кнопки DS */
.slt-login-button:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #FFD709;
    transform: translateX(-50%) translateY(-25%);
    transition: all 0.5s ease-in-out;
}

/* Текст должен лежать над растущей заливкой, поэтому он в отдельном span */
.slt-login-button__text {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.slt-login-button:hover {
    background-color: #FFD709;
    transition: all 0.1s ease-in-out 0.35s;
}

.slt-login-button:hover:before {
    width: 400px;
    height: 400px;
}

.slt-login-button:active {
    box-shadow: 0 0 0 2px rgba(255, 202, 0, 0.5);
    transition: all 0.1s ease-in-out;
}

/* Отступ кнопки от текста над ней. Свой margin контейнера обнулён, чтобы
   расстояние задавалось здесь, а не наследовалось от legacy-стилей страницы. */
.slt-login-button-holder {
    margin: 0;
    padding-top: 20px;
}
