* {
    box-sizing: border-box;
}

/* HTML base styles */
body {
    height: 100vh;
    min-height: 600px;
    margin: 0;
    background: radial-gradient(100% 130.37% at 0% 100%,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(25, 106, 255, 0.2) 100%), var(--ssn-white);
}

.link {
    color: var(--ssn-blue-500, #196AFF);
    text-decoration: none;
}

.link__inherit {
    color: inherit;
    text-decoration: underline;
}

.link:hover {
    text-decoration: underline;
}

.link:focus-visible {
    outline: none;
    text-decoration: underline;
}

.link:visited {
    color: var(--ssn-blue-500, #196AFF);
    outline: none;
    text-decoration: none;
}

/* General styles */
.flex-center {
    align-items: center;
    display: flex;
    justify-content: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.width-100 {
    width: 100%;
}

.font-left {
    text-align: left;
}

.font-center {
    text-align: center;
}

.font-bold {
    font-weight: 600;
}

.ml-8 {
    margin-left: 8px;
}

.mt-8 {
    margin-top: 8px;
}

.mx-24 {
    margin-left: 24px;
    margin-right: 24px;
}

.w-100 {
    width: 100%;
}

.no-wrap {
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Theme styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-style: normal;
    font-weight: 600;
    line-height: 1.5em;
    margin: 0px;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

.font-montserrat {
    font-family: var(--ssn-montserrat-font-family);
}

.font-source-sans {
    font-family: var(--ssn-source-sans-font-family);
}

.font-h2 {
    /* Heading/H2 */
    font-family: var(--ssn-montserrat-font-family);
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    color: var(--ssn-grey-900, #212529);
    margin: 0;
}

.font-h3 {
    /* Heading/H3 */
    font-family: var(--ssn-montserrat-font-family);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
}

.font-h6 {
    /* Subheading/H6 */
    font-family: var(--ssn-source-sans-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px; 
    /* 128.571% - Ratio of line-height to font-size */
    color: var(--ssn-grey-700, #495057);
}

.font-body1 {
    /* Body/Body 1 */
    font-family: var(--ssn-source-sans-font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% - Ratio of line-height to font-size */
    letter-spacing: 0.16px;
    color: var(--ssn-grey-900, #212529);
}

.font-body2 {
    /* Body/Body 2 */
    font-family: var(--ssn-source-sans-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 142.857% - Ratio of line-height to font-size */
    letter-spacing: 0.14px;
    color: var(--ssn-grey-700, #495057);
}

.font-body2--bold {
    /* Body/Body 2 – Bold */
    font-family: var(--ssn-source-sans-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 142.857% - Ratio of line-height to font-size */
    letter-spacing: 0.14px;
}

.font-label {
    /* Label/Label */
    font-family: var(--ssn-source-sans-font-family);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% - Ratio of line-height to font-size */
}

.font-watermark {
    /* Watermark/Watermark */
    font-family: var(--ssn-source-sans-font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; 
    /* 175% - Ratio of line-height to font-size */
    letter-spacing: 0.8px;
    color: var(--ssn-grey-600, #868E96);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: min(10vw, 150px);
    transition: .2s ease-in-out;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 400px;
    padding: 24px 0;
    border: 1px solid var(--ssn-grey-300);
    border-radius: 12px;
    background-color: var(--ssn-white);
    box-shadow: var(--ssn-shadow-card);
    transition: .2s ease-in-out;
}

.card__header {
    display: flex;
    padding: 0px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card__row {
    display: flex;
    padding: 0px 24px;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;

    align-self: stretch;
}

.card__message-box {
    display: flex;
    width: 100%;
    padding: 8px;
    margin-top: 24px;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    border-radius: 6px;
}

.server-response--error {
    color: var(--ssn-red-500, #D71616);
    border: 1px solid var(--ssn-red-500, #D71616);
    background: var(--ssn-red-100, #FDF2F2);
}

.server-response--message {
    color: var(--ssn-blue-500, #196AFF);
    border: 1px solid var(--ssn-blue-500, #196AFF);
    background: var(--ssn-blue-100, #F0F5FE);
}

.form-body {
    display: flex;
    padding: 24px 24px 16px;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    align-self: stretch;
}

.input-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.input-label {
    color: var(--ssn-grey-700, #495057);
}

.input-field {
    position: relative;
}

.input-field__input {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    gap: 8px;
    outline: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--ssn-grey-400, #CED4DA);
    background: var(--ssn-white);
    transition: .2s ease-in-out;
}

.input-field__input:hover {
    border: 1px solid var(--ssn-grey-700, #495057);
}

.input-field__input:focus-visible {
    border: 1px solid var(--ssn-blue-500, #196AFF);
}

.input-field__input--error {
    border: 1px solid var(--ssn-red-500, #D71616) !important;
}

.input-field__trailing-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    outline: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
}

.input-field__trailing-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--ssn-grey-900, #212529);
}

.input-field__with-trailing-icon-button:not([autocomplete="off"]).visible-icon {
    padding-right: 42px;
}

.input-field__with-trailing-icon-button:not(:placeholder-shown):not([autocomplete="off"]) {
    padding-right: 42px;
}

.input-field__with-trailing-icon-button:not(.visible-icon):placeholder-shown + .input-field__trailing-icon-button,
.input-field__with-trailing-icon-button[autocomplete="off"] + .input-field__trailing-icon-button {
    display: none;
}

.input-field__validation-error {
    padding: 0 8px;
    color: var(--ssn-red-500, #D71616);
}

.button-group__outlined__vertical {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ssn-grey-300, #DEE2E6);
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
}

.button-group__outlined__vertical>* {
    width: 100%;
    border-bottom: 1px solid var(--ssn-grey-300, #DEE2E6) !important;
}

.button-group__outlined__vertical>*:last-child {
    border-bottom: none !important;
}

.button__solid-secondary {
    display: inline-flex;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    background: var(--ssn-grey-100);
    color: var(--ssn-blue-500);
}

.forgot-password {
    padding: 0px 24px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    animation: loading-spinner 0.5s linear infinite;
    align-self: center;
    justify-self: center;
}

.scrawlr-watermark {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 4px;
}

.locale-select {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ssn-grey-900);

    padding: 0 24px 2px 0;
    color: var(--ssn-grey-800);

    cursor: pointer;
    outline: none;
}

/* Text Color Classes */
.text-primary {
    color: var(--ssn-blue-500);
}

.text-secondary {
    color: var(--ssn-grey-700);
}

.divider {
    border-top: 1px solid var(--ssn-grey-300, #DEE2E6);
    border-bottom: none;
}

/* Responsiveness */
@media only screen and (max-width: 459px) {
    .container {
        padding-top: 0;
        height: 100%;
    }

    .card {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* Animation */

@keyframes loading-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}