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

body, html {
    height: 100%;
    font-family: 'Jost', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: rgba(252, 252, 252, 1);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100vh;
}

/* Фон */
.form-container-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 46px;
    padding: 80px 92px 192px 92px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Бокс со стрелочкой и надписью "Назад" */
.back-box {
    display: flex;
    align-self: flex-start;
    justify-content: center;
    align-items: center;
    gap: 21px;
    cursor: pointer;
    padding: 16px 29px;
    position: relative;
    z-index: 10;
}

.back-box img {
    user-drag: none;
    user-select: none;
    -webkit-user-drag: none;
    width: 16px;
    height: 14px;
}

.check-icon {
    margin-top: 2px;
}

.back-text {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    line-height: 130%;
}

/* Первое окно регистрации */

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    padding: 40px 80px 36px 80px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    gap: 40px;
    box-sizing: border-box;
    width: 642px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
}

.header img {
    user-drag: none;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: contain;
}

.form-container h1 {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    cursor: default;
    line-height: 110%;
}

.form-btns {
    width: 485px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Кнопки */
.google-btn,
.email-btn,
.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 64px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    font-family: 'Jost', sans-serif;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.google-btn {
    background: rgba(102, 108, 232, 1);
}

.google-btn:hover {
    background: rgba(92, 98, 211, 1);
}

.google-btn:active {
    background: rgba(255, 255, 255, 1);
    color: rgba(107, 120, 235, 1);
}

.google-icon {
    margin-right: 14.35px;
}

.google-btn:active .google-icon path {
    fill: rgba(107, 120, 235, 1);
}

.email-btn {
    background: rgba(156, 160, 255, 1);
}

.email-btn:hover {
    background: rgba(138, 141, 225, 1);
}

.email-btn:active {
    background: rgba(255, 255, 255, 1);
    color: rgba(156, 160, 255, 1);
}

.label-email {
    width: 100%;
    display: block;
}

.email-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 62px;
    padding: 20px 24px;
    border: 2px solid rgba(104, 103, 103, 1);
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 400;
    line-height: 21.94px;
    border-radius: 8px;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 1);
    font-family: 'Jost', sans-serif;
}

.email-input.hidden {
    visibility: hidden;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
}

.email-input:focus {
    border: 2px solid rgba(102, 108, 232, 1);
    outline: none;
}

.email-input.error {
    border: 2px solid rgba(232, 102, 102, 1);
}

.email-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px transparent inset !important;
    box-shadow: 0 0 0 100px transparent inset !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 1) !important;
    background-color: transparent !important;
    caret-color: rgba(255, 255, 255, 1) !important;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    transition: background-color 5000s ease-in-out 0s;
}

.error-message {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    color: rgba(232, 102, 102, 1);
    margin-top: -24px;
    margin-bottom: 24px;
    display: none;
}

/* Кнопка продолжить */
.submit-btn {
    background: rgba(255, 255, 255, 0.2);
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    background: rgba(255, 255, 255, 1);
    color: rgba(107, 120, 235, 1);
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .form-container-wrapper {
        padding: 0px 16px;
        gap: 20px;
        justify-content: flex-start;
        min-height: 600px;
        position: relative;
        z-index: 1;
    }

    .back-box {
        padding: 22.5px 1.5px;
        position: relative;
        z-index: 2;
    }

    .form-container {
        width: 288px;
        padding: 40px 16px 43px 16px;
    }

    .header {
        padding-top: 3.89px;
        gap: 24.26px;
    }

    .form-container h1 {
        font-size: 24px;
        line-height: 120%;
    }

    .form-btns {
        width: 256px;
        gap: 16px;
    }

    .google-btn,
    .email-btn,
    .submit-btn {
        font-size: 16px;
    }

    .google-icon {
        margin-right: 10.35px;
    }
}