* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f0f0f1;
}

body.sm-auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 3rem 1rem;
    background: #f0f0f1;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.sm-auth {
    width: min(100%, 360px);
    margin: 0 auto;
}

.sm-auth__logo {
    display: flex;
    justify-content: center;
    min-height: 72px;
    margin: 0 0 1.5rem;
    text-align: center;
}

.sm-auth__logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.sm-auth__logo-image {
    display: block;
    width: auto;
    max-width: min(280px, 100%);
    max-height: 86px;
    object-fit: contain;
}

.sm-auth__site-name {
    color: #1d2327;
    font-size: 1.5rem;
    font-weight: 650;
    text-decoration: none;
}

.sm-auth__card {
    padding: 26px 24px 30px;
    border: 1px solid #c3c4c7;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.sm-auth__card h1 {
    margin: 0 0 1.25rem;
    color: #1d2327;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
}

.sm-auth__intro {
    margin: 0 0 1.25rem;
}

.sm-auth__form p {
    margin: 0 0 1rem;
}

.sm-auth__form label {
    display: block;
    margin: 0 0 .35rem;
    font-size: 14px;
}

.sm-auth__form input[type="text"],
.sm-auth__form input[type="password"] {
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #fff;
    color: #2c3338;
    font: inherit;
}

.sm-auth__form input:focus,
.sm-auth__button:focus,
.sm-auth__home-button:focus,
.sm-auth__link a:focus,
.sm-auth__logo a:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.sm-auth__submit {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.sm-auth__submit button,
.sm-auth__button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border: 1px solid #2271b1;
    border-radius: 3px;
    background: #2271b1;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.sm-auth__submit button:hover,
.sm-auth__button:hover {
    border-color: #135e96;
    background: #135e96;
}

.sm-auth__link {
    margin: 1rem 0 0;
}

.sm-auth__link a,
.sm-auth__home a {
    color: #2271b1;
}

.sm-auth__notice {
    margin: 0 0 1rem;
    padding: .75rem .9rem;
    border-left: 4px solid;
    background: #f6f7f7;
}

.sm-auth__notice--error {
    border-left-color: #d63638;
}

.sm-auth__notice--success {
    border-left-color: #00a32a;
}

.sm-auth__home {
    margin: 1.25rem 0 0;
    text-align: center;
}

.sm-auth__home-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #f6f7f7;
    color: #2c3338 !important;
    text-decoration: none;
}

.sm-auth__home-button:hover {
    border-color: #646970;
    background: #fff;
}

@media (max-width: 420px) {
    body.sm-auth-page {
        padding: 1.5rem .75rem;
    }

    .sm-auth__card {
        padding: 22px 18px 26px;
    }
}
