﻿html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button {
    border-style: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: black;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 0 37px white;
}

input:disabled {
    -webkit-box-shadow: unset !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: light-dark(rgb(84, 84, 84), rgb(170, 170, 170)) !important;
    transition: background-color 5000s ease-in-out 0s !important;
    box-shadow: inset 0 0 0 37px light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3)) !important;
}

body {
    background-color: #202131;
    color: #fff;
    font-family: athletics, sans-serif;
    display: grid;
    grid-template-columns: minmax(20px, 1fr) auto 1fr;
    grid-template-rows: 240px auto;
    grid-template-areas:
        ". header ."
        ". content ."
        ". footer .";
}

header {
    grid-area: header;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    align-items: center;
}

.content-container {
    grid-area: content;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 4fr 1fr;
    grid-gap: 40px 100px;
    grid-template-areas: 
        "sign info"
        "coop .";
}

.window-container {
    display: inline-block;
    background-color: #fff;
    color: #16161E;
    width: 672px;
    min-height: 500px;
    padding: 40px;
    border-radius: 8px;
    align-self: center;
}

.window-container-smaller {
    display: inline-block;
    background-color: #fff;
    color: #16161E;
    width: 672px;
    min-height: 357px;
    padding: 40px;
    border-radius: 8px;
}

.window-title {
    font-size: 24px;
    color: #7256ce;
    line-height: 28px;
    font-weight: bold;
    margin-bottom: 16px;
}

.window-bullet-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 24px;
}

.window-bullet-container:last-of-type {
    margin-top: 24px;
    margin-bottom: 0;
}

.window-bullet-container-inner {
    display: flex;
    gap: 15px;
    align-content: space-around;
}

.window-bullet-right {
    margin-top: 10px;
}

.window-bullet-desc {
    font-size: 18px;
    font-family: Inter, sans-serif;
    max-width: 340px;
}

.window-bullet-desc + form {
    margin-top: 28px;
}

.window-bullet-point {
    align-self: start;
    height: 39px;
}

.bullet-form-container {
    width: 100%;
    margin-top: 10px;
}

#totpcodeinput {
    max-width: 325px;
}

.window-bullet-title {
    display: block;
    font-size: 28px;
    color: #16161e;
    line-height: 24px;
    font-weight: 700;
    max-width: 360px;
    min-width: 360px;
    margin-bottom: 16px;
}

.window-link {
    font-size: 16px;
    color: #7256ce;
    line-height: 22px;
    font-weight: 700;
    text-decoration: none;
}

.window-divider {
    display: block;
    border-bottom: 1px solid #CDCDD6;
    width: 100%;
}

.totp-code {
    display: block;
    width: 100%;
    text-align: end;
    margin: 10px 0;
    max-width: 585px;
    overflow-wrap: break-word;
}

.totp-code-hover:hover {
    cursor: pointer;
}

.qrcode-guide {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    color: #7256CE;
    margin-top: 16px;
}

.qrcode-guide:hover {
    color: #7256CE;
}

.qrcode {
    border: 1px solid #7256ce;
    box-shadow: 0 4px 4px 0 #00000040;
    max-width: 150px;
}

.form-title {
    font-weight: bold;
    color: #16161e;
    font-size: 20px;
    line-height: 24px;
    margin-top: 32px;
}

.form-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.signin-body {
    padding-bottom: 24px;
}

.form-hint {
    font-size: 12px;
    display: block;
    font-family: Inter, sans-serif;
    line-height: 17px;
    font-weight: 600;
    margin-top: 16px;
}

.form-desc {
    display: block;
    font-size: 16px;
    line-height: 19px;
    color: #16161e;
    max-width: 343px;
    margin-bottom: 24px;
}

.form-container {
    margin-top: 30px;
    grid-area: sign;
}

.form-container form {
    margin: 24px 0;
}

.form-label {
    font-family: inter, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #656572;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-input {
    font-family: inter, sans-serif;
    padding: 12px 16px 12px 16px;
    border-radius: 4px;
    border: 1px solid #cdcdd6;
    font-size: 16px;
    line-height: 22px;
    height: 56px;
}

.form-group:not(:first-child) {
    margin-top: 32px;
}

.form-input::placeholder {
    font-family: inter, sans-serif;
    color: #9191A1;
}

.repeat-password {
    margin-top: 32px;
}

.form-control:focus {
    border-color: #7256ce;
    box-shadow: 0 0 0 .25rem rgba(114, 86, 206, .25);
}

.submit-button {
    height: 56px;
    background-color: #16161e;
    padding: 12px 24px 12px 24px;
    border-radius: 32px;
    color: #ffffff;
    font-size: 16px;
    line-height: 19px;
    width: 176px;
    justify-content: center;
    font-weight: 700;
}

.submit-button:disabled {
    background-color: #cdcdd6;
    color: #656572;
}

.submit-button:disabled > img {
    filter: brightness(0.5);
}

.input-static-width {
    width: 343px;
}

.form_helper-text {
    font-family: athletics, sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    color: #7256CE;
}

.forgot-password {
    font-size: 16px;
    line-height: 24px;
    color: #7256ce;
    font-weight: 700;
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 24px;
    margin-bottom: -48px;
}

.forgot-password:hover {
    cursor: pointer;
}

.forgot-password img {
    margin-right: 8px;
}

.error-text {
    height: 24px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}

.error-text ul {
    margin: 0;
    padding-left: 0 !important;

}

.error-text li {
    list-style-type: none;
    padding: 0;
    max-width: 343px;
}

.get-app-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
    gap: 64px;
}

.get-app-container img:hover {
    cursor: pointer;
}

.get-app-container a {
    color: #7256CE;
    font-style: normal;
    text-decoration: none;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
}

.get-app-container a:hover {
    color: #7256CE;
}

.send-sms-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    margin-top: 84px;
    gap: 16px;
}

.send-sms-form span {
    width: 270px;
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 14px;
    color: #656572;
}

.send-sms-form button {
    width: 280px;
    justify-content: center;
}

.redirect-form button {
    width: 280px;
}

.resend-sms {
    font-size: 16px;
    line-height: 24px;
    color: #7256ce;
    font-weight: 700;
}

.resend-sms:hover {
    cursor: pointer;
}

.sms-code-form {
    margin: 20px 0;
}

.store-qr-code {
    border: 1px solid #7256CE;
    /*noinspection CssOverwrittenProperties*/
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: -o-crisp-edges;
}

.store-qr-code-label {
    font-size: 16px;
    font-weight: 700;
}

#codeForm {
    margin-top: 24px;
}

.submit-button-long {
    height: 56px;
    background-color: #16161e;
    padding: 12px 24px 12px 24px;
    border-radius: 32px;
    color: #ffffff;
    font-size: 16px;
    line-height: 19px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    min-width: 280px;
    font-weight: 600;
}

.alt-button-long {
    height: 56px;
    background-color: transparent;
    padding: 12px 24px 12px 24px;
    border-radius: 32px;
    color: #16161E;
    font-size: 16px;
    line-height: 19px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    min-width: 280px;
    border: solid 2px #16161E;
    font-weight: 600;
}

.submit-button-long:disabled {
    background-color: #cdcdd6;
    color: #656572;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: -40px;
}

.pwd-reset-cancel-button {
    text-decoration: none;
    color: #7256CE;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle {
    position: absolute;
    bottom: 16px; /* 12px input padding, 1px margin, input_height(30px) - img_height(24px) / 2 */
    right: 17px; /* 16px input padding, 1px margin*/
    z-index: 10;
}

.password-toggle:hover {
    cursor: pointer;
}

.password-input {
    padding-right: 52px; /* space for toggle button*/
}

@media (max-width: 1200px) {
    body {
        grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    }

    .content-container {
        margin-top: 40px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-gap: 60px 0;
        grid-template-areas:
            "sign"
            "coop"
            "info";
    }
}

.info-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 34px;
    margin-top: 40px;
}

@media (max-width: 857px) {
    body {
        grid-template-columns: 16px auto 16px;
    }

    .window-container {
        width: 100%;
        padding: 32px 16px;
        min-height: 500px;
    }

    .window-container-smaller {
        width: 100%;
        padding: 32px 16px;
    }

    .qrcode-guide {
        white-space: initial;
        width: 100%;
        max-width: 200px;
    }

    .qrcode {
        max-width: 50%;
        margin: 0 auto;
        margin-bottom: 24px;
        /*noinspection CssOverwrittenProperties*/
        image-rendering: pixelated;
        image-rendering: crisp-edges;
        image-rendering: -moz-crisp-edges;
        image-rendering: -webkit-crisp-edges;
        image-rendering: -o-crisp-edges;
    }

    .window-bullet-title {
        min-width: unset;
        font-size: 24px;
    }

    .window-bullet-title:has(+ .form-body) {
        margin-bottom: 32px;
    }

    .input-static-width {
        width: 100%;
    }

    .form-container {
        margin-top: 16px;
    }

    .form-title {
        margin-top: 16px;
    }

    .form-body {
        flex-direction: column;
        align-items: initial;
    }

    .sms-code-form {
        margin: 24px 0;
        gap: 24px;
    }

    .sms-code-form > .submit-button {
        position: relative;
        top: 58px;
    }

    .auth-title + #codeForm > .submit-button {
        position: initial;
    }

    #codeForm > .submit-button {
        position: relative;
        top: 55px;
    }

    .resend-form {
        position: relative;
        top: -84px;
    }

    .signin-body {
        padding-bottom: 0;
    }

    .window.window-bullet-container {
        margin-top: 16px;
    }

    .window-bullet-container .form-body {
        width: calc(100% + 43px);
        margin-left: -43px;
    }

    .window-bullet-container:last-of-type {
        margin-top: 24px;
    }

    .get-app-container {
        flex-direction: column;
        margin-bottom: 8px;
    }

    .send-sms-form {
        margin-top: 40px;
    }

    .send-sms-form span {
        width: 85%;
        margin: 0 auto;
        text-align: center;
    }

    button.submit-button {
        width: 90%;
        margin: 0 auto;
    }

    .submit-button-long {
        width: 100%;
        margin: 0 auto;
    }
    
    .alt-button-long {
        width: 100%;
        margin: 0 auto;
    }

    .forgot-password {
        margin-bottom: 0;
    }

    div#error-text.change-password_error-text {
        margin-top: 56px;
    }
}