/*SIMPLE INPUTS*/
/* весь главный блок*/
.input{
    height: 36px;
    font-size: 28px;
    display: inline-block;
    position: relative;
    width: 100%;
}

/*поле ввода*/
.input__field{
    /* text-align: center; */
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    color: #c9e1ff;
    background: transparent;    /*прозрачный*/
}

.input__field:focus{
    outline:  none; /*границ нет*/
}

.input__label{
    position: absolute;
    top: 1px;
    left: 0;
    height: 100%;
    pointer-events: none;   /*предотвращает события мыши по щелчку элемента*/
    border-bottom: 1px solid rgba(160, 197, 251, 0.1);
    width: 100%;
    color: #7c8a9c;
    user-select: none;  /*нельзя выделять текст*/
}

.input__label:after{
    position: absolute;
    content: '';        /*если его не будет, то не будет в принципе полосы*/
    bottom: 0;
    left: 0;
    transition: 0.3s ease-out;
}

/*Разделение на состояние до и после: с точки зрения программы не нужно,
  но зато понятно откуда и куда
*/

/*Полоска под лейблом старт анимации*/
.input__label:after {
    top: 1px;
    width: 0;
    border-bottom: 1px solid #42505e;
}

/*Полоска под лейблом финиш анимации*/
.input__label.focus:after{
    top: 1px;
    width: 100%;
    border-bottom: 1px solid #c9e1ff;
}

.input__label-content{
    position: relative;
    bottom: 0;
    left: 0;
    transition: 0.3s ease-out;      /*анимация для фокуса*/
}

/*Как не странно filled - работает, но не отключается при стирании вручную
  почему-то считает, что все еще есть что-то.
*/
.input .input__label.focus .input__label-content,
.input .input__label.filled .input__label-content{
    opacity: 0;
    position: relative;
    bottom: 25px;
    font-size: 14px;
}


/* кнопка отмены записи*/
.input .close_btn{
     opacity: 0.1;      /* почти прозрачный*/
     cursor: pointer;
     position: absolute;
     right: 0;
     top: 16px;
     width: 16px;
     height: 16px;
     background: url('../img/close_icon.svg') no-repeat;        /*цвет - картинка*/
     transition: 0.3s ease-out;
}


.input .close_btn:hover{
    opacity: 1;
}
