html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Montserrat, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #EDEEEC;
}

body::-webkit-scrollbar {
    display: none;
}

:root {
    --bg-black: #23260F;
    --bg-grey-lite: #969C93;
    --bg-bolotny: #292C11;
    --bg-bolotny-lite: #747E67;
    --bg-blue: #5F81D9;
    --bg-red: #D9534F;
    --bg-yellow: #EADB38;
    --bg-brown: #A27033;
    --bg-green: #4BB24F;
}

main {
    height: 100%;
}

@font-face {
    font-family: 'Economica';
    src: url('/Content/fonts/Economica-Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/Content/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

.main-form {
    overflow-y: auto;
    height: 100%;
    width: 100%;
}

.auth-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    max-width: 600px;
    height: 100%;
}

.content-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto 0;
}

.content-logo .slogan {
    font-size: 12px;
    color: var(--bg-black);
    text-align: center;
    font-family: Economica, sans-serif;
}

.control-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

.control-content .info-auth-text {
    font-size: 10px;
    color: var(--bg-grey-lite);
    text-align: center;
    font-family: Montserrat, sans-serif;
}

.info-auth-text a {
    color: #564747;
    text-decoration: none;
}

.registration-button, .submit-button {
    width: 100%;
    background-color: var(--bg-black);
    color: #FFFFFF;
    font-size: 16px;
    padding: 16px 0;
    font-family: Economica, sans-serif;
    font-style: normal;
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.registration-button:focus, .submit-button:focus {
    outline: none; 
}

.registration-button:active, .submit-button:active {
    outline: none;
}

.submit-button {
    width: calc(100% - 40px);
}

.alternate-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.alternate-content .alternate-text {
    font-size: 14px;
    color: var(--bg-grey-lite);
    text-align: center;
    font-family: Economica, sans-serif;
}

.alternate-content .alternate-button, .input-change-button {
    font-size: 14px;
    color: var(--bg-blue);
    background-color: transparent;
    border: none;
    font-family: Economica, sans-serif;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.alternate-button:focus {
    outline: none;
}

.alternate-button:active {
    outline: none;
}

.alternate-button:active {
    outline: none;
    background-color: inherit;
}

.input-change-button {
    margin-left: auto;
}

.auth-section .logo-img {
    margin-bottom: 30px;
}

.loader-icon {
    animation: rotate 1.5s linear infinite;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.header .title-registration {
    font-size: 24px;
    color: var(--bg-black);
    text-align: center;
    font-family: Economica, sans-serif;
    margin: 0;
}

.header p {
    font-size: 12px;
    color: var(--bg-grey-lite);
    text-align: center;
    font-family: Montserrat, sans-serif;
    margin: 0;
    max-width: 230px;
}

.header .logo-img {
    margin-top: 30px;
    margin-bottom: 0;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin: 20px 0;
    width: calc(100% - 40px);
}

.input-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.input-group .form-label {
    font-size: 14px;
    color: #6C6262;
    font-family: Montserrat, sans-serif;
}

.input-group .form-input {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    border-radius: 9px;
    font-family: Montserrat, sans-serif;
    box-sizing: border-box;
    border: none;
}

.additional-link {
    margin: 20px 0;
    width: 100%;
}

.line {
    height: 1px;
    position: relative;
}

.line-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    background-color: #EDEEEC;
    font-size: 12px;
}

.link-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

}

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    border: 1px solid var(--bg-grey-lite);
    height: 50px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    width: 185px;
    gap: 5px;
}

.social-button.max-btn {
    box-shadow: 0 4px 15px rgba(123,104,238,0.4);
}

.social-button.telegram-btn {
    box-shadow: 0 4px 15px #54a9eb50;
}

.social-button .social-text {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    color: #6C6262
}

.social-button:active {
    outline: none;
}

.header-control {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    gap: 2px;
}

.flex-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.code-input {
    display: flex;
    width: 50px;
    height: 73px;
    border-radius: 12px;
    font-size: 30px;
    font-family: Montserrat, sans-serif;
    text-align: center;
    border: none;
    font-weight: 500;
}

.header-control p {
    white-space: nowrap;
    max-width: 300px;
}

.header-link {
    color: var(--bg-blue);
    text-decoration: none;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    border: none;
    cursor: pointer;
    outline: none; 
    -webkit-tap-highlight-color: transparent;
}

.header-link:focus {
    outline: none;
}

.header-link:active {
    outline: none;
}

.input-group .text-small {
    font-size: 12px;
}

.form-input.input-error {
    border: 2px solid #f08786;
}

.error-message {
    display: flex;
    justify-content: center;
    color: #f08786;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
}

.back-button-form {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 31px;
    height: 31px;
    background-size: contain;
    border: none;
    cursor: pointer;
}

.info-message {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1.6px solid var(--bg-grey-lite);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px #969c936b;
}

.info-message .message-text {
    font-size: 16px;
    font-weight: 600;
    color: #6C6262;
    text-align: center;
    font-family: Montserrat, sans-serif;
    white-space: pre-line;
}

.wrapper-message {
    position: relative;
    width: 110px;
    height: 110px;
}

.wrapper-message .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 79, 0.47);
    animation: pulse 1.8s infinite;
}

.wrapper-message .pulse:nth-child(1) {
    animation-delay: 0s;
}

.wrapper-message .pulse:nth-child(2) {
    animation-delay: -0.6s;
}

.wrapper-message .pulse:nth-child(3) {
    animation-delay: -1.3s;
}

.circle-wrapper {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #4caf50;
    border-radius: 50%;
    top: 14%;
    left: 50%;
    transform: translateX(-47%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(76, 175, 79, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .auth-section {
        overflow-x: hidden;
    }
}

@media screen and (min-width: 375px) and (max-width: 400px) {
    .flex-input-group {
        gap: 10px;
    }
}

@media screen and (min-width: 320px) and (max-width: 375px) {
    .code-input {
        width: 41px;
    }
    .flex-input-group {
        gap: 8px;
    }
}
