*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.container{
    font-family: sans-serif;
}

@font-face {
    font-family: 'SFProText-Bold';
    src: url('media/fonts/SFProText-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SFProText-Semibold';
    src: url('media/fonts/SFProText-Semibold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SFProText-Light';
    src: url('media/fonts/SFProText-Light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.container{
    font-family: sans-serif;
}

body{
    background: linear-gradient(to bottom, #89aada, #48528C);
    /* background: linear-gradient(to bottom, #8fafdf, #48528C); */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.container {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}  

h1{
    font-family: 'SFProText-Semibold';
    color: #fff;
    text-align: center;
    font-size: 36px;
}

h1 strong{
    font-family: 'SFProText-Bold';
    color: #3B4072;
}

.form-wrap{
    margin-top: 30px;
}


form{
    margin: 0 auto;
    width: 840px;
    height: 500px;
    background: linear-gradient(to bottom, #E8F4FF, #B3D1FF);
    border-radius: 35px;
    display: flex;
    justify-content: center;
}

.form-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
}

.logo-wrap{
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    background-image: url(media/logo.png);
    background-size: cover;
    width: 110px;
    height: 110.9px;
    margin: 30px 0;
    transition: transform 0.1s linear;
    transform-style: preserve-3d;
}


/* .logo:hover{
    cursor: pointer;
    animation: coin-flip 1s ease;
} */

.input-wrap p,
.input-wrap input,
.input-wrap input::placeholder{
    font-family: 'SFProText-Light';
    letter-spacing: -0.3px;
}


form .input{
    width: 100%;
    height: 70px;
    background-color: #fff;
    border-radius: 13.7px;
    margin-bottom: 20px;
    padding: 12px 15px;
    box-sizing: border-box;
    color: #4E4E4E;
    transition: filter 0.2s;
    font-size: 13.5px;
}

form .input:hover{
    transition: filter 0.2s;
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.200));
}

form .input-line{
    margin-top: 5px;
    display: flex;
    align-items: center;
}

form input{
    background-color: transparent;
    font-size: 14px;
    border: none;
    /* border: 1px solid #000; */
    height: 25px;
    width: 200px;
}

form input#password{
    width: 110px;
}

form input::placeholder{
    color: #737373;
}

form input:focus{
    outline: none;
}

form input:focus::placeholder {
    color: transparent;
}

.input-icon{
    width: 13.5px;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 10px;
}

.input-icon.email-icon{
    background-image: url(media/mail-icon.png);
    height: 12.15px;
}

.input-icon.password-icon{
    background-image: url(media/lock-icon.png);
    height: 18.4545px;
}


button.sign-in-btn{
    background-color: #3F4780;
    width: 100%;
    height: 45px;
    border-radius: 17px;
    font-size: 13px;
    color: #fff;
    font-family: 'SFProText-Semibold';
    border: none;
    transition: background-color 0.2s;
}

button.sign-in-btn:hover{
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #2f3563;
}


.btm-block{
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btm-block a{
    text-decoration: none;
    color: #4E4E4E;
    font-family: 'SFProText-Semibold';
    font-size: 12px;
    transition: color 0.2s;
}

.btm-block a:hover{
    cursor: pointer;
    color: #000000;
    transition: color 0.2s;
    text-decoration: underline;
}

.container{
    opacity: 0;
    animation: slideFadeIn1 1s ease forwards;
    animation-delay: 2s;
}

.container-wrap {
    animation: slideFadeIn 0.5s ease forwards;
    animation-delay: 2s;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeIn1 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@keyframes flip-logo {
    0% {
        transform:rotate3d();
    }
    100% {
        transform:rotate3d();
    }
}


@keyframes coin-flip {
    0% {
        transform: perspective(600px) rotateY(0deg) translateY(0);
    }
    30% {
        transform: perspective(600px) rotateY(180deg) translateY(-10px);
    }
    70% {
        transform: perspective(600px) rotateY(360deg) translateY(0);
    }
    100% {
        transform: perspective(600px) rotateY(360deg) translateY(0);
    }
}



@media screen and (max-width: 850px){
    form{
        width: 500px;
    }
}


@media screen and (max-width: 550px){
    h1{
        font-size: 26px;
    }
    .form-container{
        width: 250px;
    }
    form{
        width: 300px;
    }
}

@media screen and (max-width: 450px){
    h1{
        font-size: 23px;
    }
    .form-container{
        width: 250px;
    }
    form{
        width: 300px;
    }
}









.input-line {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password-btn {
    background: url('media/hide.png') no-repeat center center;
    background-size: 20px 20px;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    opacity: 0.7;
}

/* Когда пароль показан — можно менять иконку */
.toggle-password-btn.showing {
    background: url('media/visible.png') no-repeat center center;
    background-size: 20px 20px;
}
