:root {
    --color__0: #18111E;
    --color__1: #48424D;
    --color__2: #A7A4AA;
    --color__3: #D7D6D8;
    --color__4: #EEEEEF;
    --color__5: #FFFFFF;

    --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --shadow: 0px 8px 8px -4px rgba(0, 0, 0, 0.03), 0px 20px 24px -4px rgba(0, 0, 0, 0.08);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: relative;
    outline: none;
    border: none;
}
html, body {
    width: 100%;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}
body {
    background: var(--color__4);
    font-family: var(--font);
    font-weight: 500;
}
.cn-container {
    position: absolute;
    width: calc(100% - 8rem);
    max-width: 1280px;
    background: var(--color__5);
    border: 1px solid var(--color__3);
    border-radius: 12px;
    inset: 0;
    padding: 12px;
    box-shadow: var(--shadow);
    display: grid;
    place-content: center;
    margin: 3rem auto;
}
.env {
    position: absolute;
    top: 0;
    left: 0;
    width: 124px;
    height: 24px;
    color: var(--color__5);
    text-align: center;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.env.stage {
    background: #A765E7;
}
.cn-content {
    display: grid;
    gap: 32px;
    font-size: 14px;
    line-height: 20px;
}
.cn-content.login,
.cn-content.recovery {
    max-width: 325px;
}
.top {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color__3);
}
h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    text-align: center;
    color: var(--color__2);
}
p {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: var(--color__1);
}
p.light {
    font-weight: 300;
}
input, .btn, textarea {
    font-family: var(--font);
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    padding: 10px 16px;
    background: var(--color__5);
    color: var(--color__0);
    border: 1px solid var(--color__3);
    border-radius: 8px;
}
input::placeholder, textarea::placeholder {
    font-weight: 300;
    color: var(--color__2);
}
textarea {
    height: calc(100% - 26px);
    resize: none;
}
label {
    display: block;
    margin-bottom: 6px;
}
.btn {
    cursor: pointer;
    font-weight: 600;
    transition: 350ms;
    text-align: center;
    max-width: 325px;
    justify-self: center;
    color: var(--color__5);
}
.btn.primary {
    background: #338CC6;
    border-color: #233758;
}
.btn.primary:hover {
    background: #233758;
}
.btn.secondary {
    background: var(--color__5);
    border-color: var(--color__3);
    color: var(--color__1);
}
.btn.secondary:hover {
    background: var(--color__4);
}
strong {
    font-weight: 500;
}
a {
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}
a:hover {
    color: var(--color__0);
}
a, a:visited, a:active {
    color: var(--color__1);
}
.login-form, .recovery-form, .contact-form, .form-fields {
    display: grid;
    gap: 24px;
}

.contact-form .form-fields {
    grid-template-columns: repeat(2, 1fr);
}
/* .contact-form .form-fields > div:nth-of-type(3), */
.contact-form .form-fields > div:last-of-type {
    grid-column: 2;
    grid-row-start: 1;
    grid-row-end: 4;
}
.login-form .form-fields {
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 350ms;
}
.login-form .form-fields > div:nth-of-type(2) {
    overflow: hidden;
}
.login-form .form-fields > div:nth-of-type(2) a {
    display: block;
    text-align: center;
    padding-top: 8px;
}
.login-form .form-fields.show-password {
    grid-template-rows: auto 1fr;
}
.cn-nav {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    gap: 24px;
}
.cn-nav a.active {
    color: var(--color__3);
}

.loader-holder {
    position: relative;
    display: block;
    height: 79px;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    margin: -75px 0 0 -75px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #d31346;
    width: 74px;
    height: 74px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

.small-loader-holder {
    position: relative;
    display: block;
    height: 35px;
}

.small-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #338CC6;
    width: 32px;
    height: 32px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}