* {
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 24px;
    background-color: #202020;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: #20385e;
    font-family: 'Poppins', sans-serif;
}

.registration {
    display: flex;
    flex-direction: column;
    width: min(100%, 555px);
    min-height: min(556px, calc(100svh - 48px));
    padding: 38px 48px 32px;
    border: 1px solid rgb(255 255 255 / 48%);
    border-radius: 20px;
    background: rgb(235 240 250 / 34%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 18px 48px rgb(13 25 45 / 24%), inset 0 1px 0 rgb(255 255 255 / 40%);
}

.registration__form {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}

.registration__back {
    color: #20385e;
    font-size: 14px;
    text-decoration: none;
}

.registration__back:hover,
.registration__signin a:hover {
    text-decoration: underline;
}

.main__text {
    margin: 26px 0 32px;
    color: #20385e;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

body.light-text .main__text,
body.light-text .fullname-group label {
    color: #fff;
}

.registration form {
    display: grid;
    gap: 12px;
}

.registration form[hidden],
.registration__signin[hidden],
.registration__logout[hidden] {
    display: none;
}

.fullname-group {
    display: grid;
    gap: 5px;
}

.fullname-group[hidden] {
    display: none;
}

.fullname-group label {
    color: #20385e;
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    text-transform: uppercase;
}

.fullname-group input {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgb(255 255 255 / 58%);
    border-radius: 10px;
    background: rgb(255 255 255 / 42%);
    color: #344b6c;
    font: inherit;
    font-size: 14px;
}

.fullname-group input::placeholder {
    color: #71819a;
    opacity: 1;
}

.fullname-group input:focus-visible,
.registration button:focus-visible,
.registration a:focus-visible {
    outline: 3px solid rgb(36 99 245 / 35%);
    outline-offset: 3px;
}

.registration button {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: #2463f5;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
}

.registration button:hover {
    background: #174fdb;
}

.registration button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.registration .registration__secondary {
    border: 1px solid rgb(32 56 94 / 35%);
    background: rgb(255 255 255 / 35%);
    color: #20385e;
}

.registration .registration__secondary:hover {
    background: rgb(255 255 255 / 60%);
}

.registration__message {
    min-height: 20px;
    margin: 12px 0;
    font-size: 13px;
    overflow-wrap: anywhere;
    text-align: center;
}

.registration__logout {
    display: block;
    width: 100%;
}

.registration__signin {
    margin: 12px 0 0;
    font-size: 14px;
    text-align: center;
}

.registration__signin a {
    color: inherit;
}

.registration__forgot {
    display: block;
    margin-top: 6px;
}

.registration__forgot[hidden] {
    display: none;
}

@media (max-width: 600px) {
    body {
        padding: 16px;
        background-attachment: scroll;
    }

    .registration {
        width: 100%;
        min-height: min(556px, calc(100svh - 32px));
        padding: 32px 24px 24px;
        border-radius: 18px;
    }

    .main__text {
        margin-bottom: 24px;
        font-size: 24px;
    }
}
