

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
	padding: 0;
	border: 0;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: #000;
}

h1 {
    font-size: 37px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: #9E896A;
    transition: color 0.4s ease;
    transition: 0.5s ease;

}

a:active {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: transparent;
}

a:focus {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    cursor: pointer;
}


.container {
    width: 1440px;
    margin: 0 auto;
    padding: 38px 41px;
}

.wrap {
    display: flex;
    gap: 111px;
    align-items: flex-start;
}

.btn {
    display: block;
    border-radius: 36px;
    border: none;
    background: #553E19;
    height: 49px;
    width: 232px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.5s;
}

.btn:hover {
    cursor: pointer;
    background: #8a6428;
}

#login-btn {
    background: #8a6428;
}

#login-btn:hover {
    background: #553E19;
}


/* Image block */

.image-block {
    display: flex;
    width: 737px;
    height: 825px;
    align-items: flex-end;
    border-radius: 29px;
    background: linear-gradient(180deg, rgba(151, 118, 68, 0.35) 0%, rgba(0, 0, 0, 0.35) 100%),
        url("../img/cat_rectangle.png");
    background-size: cover;
    padding-bottom: 55px;
    padding-left: 69px;
}

.image-block-text {
    color: #fff;
}


/* Form */

.form-box {
    padding-top: 75px;
    width: 454px;
    position: relative;
}

.form-greeting {
    text-align: center;
    transition: opacity 0.1s ease-in;
}


/* Form selector */

.form-selector-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 329px;
    height: 59px;
    margin: 24px auto 0 auto;
    padding: 0 12px;
    border-radius: 33px;
    background-color: #F8EDDD;
    transition: color 0.4s ease-out;
}

.form-type-markup {
    position: absolute;
    top: 10px;
    left: calc(100% - 159px);
    width: 146px;
    height: 40px;
    border-radius: 33px;
    background-color: #9E896A;
    transition: 1s ease;
}

.form-type-link {
    z-index: 1;
    display: block;
    text-align: center;
    padding: 8px 0;
    border-radius: 33px;
    width: 146px;
    transition: color 0.4s ease-out;
}

#register-link {
    color: #ffffff;
}

/* --- */

.form-description {
    margin-top: 52px;
    transition: opacity 0.1s ease-in;
}


/* Form */

.forms-wrap {
    display: flex;
    margin-top: 45px;
    position: relative;
    width: 454px;
    height: 500px;
    overflow: hidden;
}

form {
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    transition: opacity 0.3s ease-in;
    transition-delay: 0.25s;
}

.form-field {
    margin-top: 0
    /* вычитает размер span с сообщением об ошибке */
}

input {
    background-color: #fff;
    color: #000;
    outline: none;
    margin-top: 12px;
    width: 100%;
    height: 54px;
    border: 1px solid #9E896A;
    border-radius: 40px;
    font-size: 15px;
    text-indent: 31px;
    font-weight: 300;
}

input:focus {
    border: 1px solid #000;
    transition: 500ms ease;
}

input::placeholder {
    color: #ACACAC;
}

/* --- */

.form-link-forgot-password {
    margin: 0 0 0 auto;
    width: 122px;
    font-size: 12px;
    font-weight: 300;
    color: #000;
}

.form-button {
    width: 232px;
    margin: 43px 0 0 auto;
}


/* Password toggle */

.password-field {
    position: relative;
}

.toggle-password-icon {
    position: absolute;
    top: 54px;
    z-index: 1;
    right: 28px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#register-open-eye-icon {
    display: none;
}

#login-open-eye-icon {
    display: none;
}

.register {
    opacity: 1;
    left: 0;
}

.hidden {
    opacity: 0;
    left: -100%;
}

input::selection {
    background-color: #F8EDDD;
    ;
    color: black;
}

/* Стиль для авто-заполненного поля */
input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0 50px #ffffff;
    ;
    /* цвет фона */
    -webkit-text-fill-color: black;
}

/* Это стили для не валидных полей  */
/* input:invalid {
    border-color: #900;
    background-color: #fdd;
}  */


/* Это стили для кастомных сообщений об ошибке */
.error {
    font-size: 12px;
    font-weight: 300;
    padding: 4px 25px;
    height: 32px;
    color: red;
    display: block;
    align-items: flex-start;
    line-height: 85%;
}

/* .error.active {
    color: red;
    padding: 0.3em;
} */

.success-message {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    transition: opacity 0.3s ease-in;
}

.icon-success {
    display: block;
    width: 100px;
    margin-bottom: 10px;
    transition: opacity 0.5s ease-in;
}

@media screen and (min-width: 495px) and (max-width: 1520px) {
    .image-block {
        display: none;
    }

    .container {
        width: 494px;
        padding: 20px 20px;
    }
}

@media screen and (min-width: 0px) and (max-width: 494px) {
    .image-block {
        display: none;
    }

    .container {
        width: 359px;
        padding: 0 22px;
    }

    .form-selector-wrap {
        width: 315px;
        margin: 24px 0 0 0;
    }

    .forms-wrap {
        width: 315px;
    }

    .error {
        padding: 3px 20px;
    }
}