@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=PT+Serif:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

.container {
    height: 100vh;
}

.login__container {
    max-width: 540px;
    background: #F9F5F2;
    padding: 55px 97px 64px 97px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 39px;
}

@media (max-width: 992px) {
    .login__container {
        max-width: 540px;
        padding: 55px 90px 50px 90px;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .login__container {
        max-width: 540px;
        padding: 40px 10px 49px 10px;
        margin-top: 47px;
    }
}

.jagged-bottom-block::after {
    content: '';
    width: 100%;
    height: 10px;
    position: absolute;
    left: 0;
    top: 100%;
    background-position: -5px 0;
    background-size: 20px 100%;
    background-repeat: repeat-x;
    background-image: linear-gradient(145deg, #F9F5F2 33%, #F9F5F2 34%, transparent 44%),
        linear-gradient(35deg, transparent 66%, #F9F5F2 67%);
}


.login__title {
    font-family: 'Playfair Display', serif;

    font-style: normal;
    font-weight: bold;
    font-size: 32px;
    line-height: 40px;

    color: #533B31;

    margin: 0;

    text-align: center;
}

@media (max-width: 767px) {
    .login__title {
        font-size: 24px;
        line-height: 36px;
    }
}

.login__phone-form {
    width: 100%;
}

.login__title+.login__phone-form {
    margin-top: 41px;
}

.input__container {
    display: flex;
}

@media (max-width: 767px) {
    .input__container {
        flex-direction: column;
        align-items: center;
    }
}

.phone-form__input {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid #8C837A;
    box-sizing: border-box;
    border-radius: 0px;

    font-family: 'PT Serif', serif;
    font-size: 16px;
    line-height: 24px;
}

@media (max-width: 767px) {
    .phone-form__input {
        font-size: 14px;
        line-height: 20px;
    }
}

.phone-form__input:active,
.phone-form__input:hover,
.phone-form__input:focus {
    outline: 0;
    outline-offset: 0;
}

.phone-form__input:focus {
    border: 2px solid #533B31;
}

.phone-form__input::placeholder {
    font-family: 'PT Serif', serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;

    letter-spacing: 0.02em;

    color: #8C837A;
}

.phone-form__small,
.phone-form__error {
    font-family: 'PT Serif', serif;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 20px;
}

@media (max-width: 767px) {

    .phone-form__small,
    .phone-form__error {
        font-size: 12px;
        line-height: 16px;
    }
}

.phone-form__small {
    color: #8C837A;
}

.phone-form__error {
    color: #CA0606;
}

.phone-form__btn {
    width: 189px;
    height: 48px;
    background: #533B31;
    border-radius: 0px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'PT Serif', serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;

    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: #FFFFFF;
}

.phone-form__btn:disabled {
    opacity: .65;
}

.resend-button {
    width: 100%;
    height: 48px;
    background: #533B31;
    border-radius: 0px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'PT Serif', serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;

    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: #FFFFFF;
}

.resend-button.hidden{
    display: none;
}

.resend-button:disabled {
    opacity: .65;
}

@media (max-width: 767px) {
    .phone-form__btn {
        width: 100%;
        height: 50px;
    }

    .resend-button {
        height: 50px;
    }
}

.phone-form__label+.phone-form__label {
    margin-top: 24px;
}

@media (max-width: 767px) {
    .phone-form__input+.phone-form__btn {
        margin-top: 10px;
    }
}

.phone-form__label+.label {
    margin-top: 14px;
}

.label,
.label>a {
    font-family: 'PT Serif', serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;

    letter-spacing: 0.02em;

    color: #533B31;
}

.login__phone-form+.login__buttons {
    margin-top: 18px;
}

.login__buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.google-button {
    width: calc((100% - 16px)/2);
    height: 48px;
    background: #533B31;
    border-radius: 0px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'PT Serif', serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;

    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: #FFFFFF;
}

@media (max-width: 767px) {
    .login__buttons {
        flex-direction: column;
    }

    .google-button {
        width: 100%;
        height: 50px;
    }

    .label,
    .label>a {
        font-size: 14px;
        line-height: 20px;
    }
}

.login-button:disabled {
    opacity: .65;
}

.btn__content {
    display: flex;
}

.btn__content>p {
    margin-top: 0;
    margin-bottom: 0;
}

.btn__content>img+p {
    margin-left: 16px;
}

.signin-button>div>div {
    background-color: #533B31;
    border-radius: 0;
}

.signin-button>div {
    max-width: 100% !important;
}

.signin-button>div>div>svg>g>svg {
    fill: white;
}

.signin-button>div>div>svg>g>svg>text {
    fill: white;
    text-transform: uppercase;
    font-family: 'PT Serif', serif;
}

.login__buttons+.privacy__container {
    margin-top: 42px;
}

@media (max-width: 767px) {
    .login__buttons+.privacy__container {
        margin-top: 22px;
    }
}

.privacy__container {
    display: flex;
}

.privacy__checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    margin-top: 5px;
}

.checkbox-label+.label {
    margin-left: 10px;
}

.checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.checkbox+label {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox+label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    border: 2px solid #533B31;
    border-radius: 2px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.checkbox:checked+label::before {
    background-color: #533B31;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.checkbox:disabled+label::before {
    border-color: #8C837A;
}

.checkbox:not(:disabled):not(:checked)+label:hover::before {
    border-color: #8C837A;
}

.checkbox:not(:disabled)+label:hover::before {
    cursor: pointer;
}

.checkbox:not(:disabled):active+label::before {
    background-color: #8C837A;
    border-color: #8C837A;
}

.checkbox:focus:not(:checked)+label::before {
    border-color: #8C837A;
}