html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #333;
    background: #fff;
    font-family: "Helvetica Neue", "Segoe UI", Helvetica, Verdana, sans-serif;
    font-size: 14px;
}

.content {
    min-height: 100vh;
}

.outer {
    display: table;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.middle {
    display: table-cell;
    vertical-align: middle;
}

.inner {
    margin-left: auto;
    margin-right: auto;
    width: 400px;
}

.inner--login {
    height: 450px;
}

.inner--register {
    min-height: 0;
    height: auto !important;
    max-height: none;
}

@media (max-height: 700px), (max-width: 440px) {
    .outer {
        position: static;
        display: block;
        min-height: 100vh;
        padding: 20px 12px;
        box-sizing: border-box;
    }

    .middle {
        display: block;
    }

    .inner {
        width: min(400px, 100%);
    }
}

.dx-card {
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .24), 0 1px 2px rgba(0, 0, 0, .12);
}

.auth-card-content {
    padding: 20px;
    box-sizing: border-box;
}

/* Registration card must grow with all fields and actions. */
.inner--register .auth-card-content,
.inner--register form,
.inner--register #registerForm,
.inner--register .dx-layout-manager,
.inner--register .dx-responsivebox,
.inner--register .dx-box-flex {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.inner--register.dx-card {
    overflow: visible;
}

.auth-logo {
    width: 355px;
    min-height: 86px;
    padding-left: 5px;
    padding-bottom: 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.auth-logo__image {
    max-width: 355px;
    width: 100%;
    height: auto;
    display: block;
}

.auth-logo__fallback {
    width: 100%;
    color: #1f3a56;
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    text-align: center;
}

.auth-logo__fallback span {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
}

.dx-form {
    width: 100%;
}

.dx-field-item {
    margin-bottom: 20px;
}

.dx-field-item-label {
    display: block;
    color: #767676;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 2px;
}

.dx-field-item-label-text {
    color: #767676;
}

.dx-field-item-required-mark {
    color: #d9534f;
}

.dx-field-item-content {
    width: 100%;
}

.dx-textbox,
.dx-texteditor {
    width: 100%;
}

.dx-texteditor-container {
    border-bottom: 1px solid #ddd;
}

.dx-texteditor-input {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 7px 0 6px;
    border: 0;
    outline: none;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.dx-texteditor-input:focus {
    border: 0;
}

.dx-texteditor-container:focus-within {
    border-bottom-color: #36aae1;
}

.dx-field-button-item {
    margin-top: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.dx-button {
    display: inline-block;
    width: 200px;
    min-width: 80px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.dx-button:hover {
    background-color: #f5f5f5;
}

.dx-button-content {
    padding: 7px 18px 8px;
}

.dx-button-text {
    font-size: 14px;
    line-height: 20px;
}

.dx-button-submit-input,
.auth-submit {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    color: inherit;
}

.auth-link-row {
    margin-bottom: 20px;
}

.auth-link-row:last-child {
    margin-bottom: 0;
}

.auth-link-row a {
    color: #36aae1;
    text-decoration: none;
}

.auth-link-row a:hover {
    text-decoration: underline;
}

.auth-error,
.auth-success {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 13px;
}

.auth-error {
    color: #a94442;
    background: #f2dede;
    border: 1px solid #ebccd1;
}

.auth-success {
    color: #3c763d;
    background: #dff0d8;
    border: 1px solid #d6e9c6;
}

.auth-help {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .outer {
        position: static;
        display: block;
        min-height: 100vh;
        padding: 24px 12px;
        box-sizing: border-box;
    }

    .middle {
        display: block;
        vertical-align: top;
    }

    .inner {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .auth-logo {
        width: 100%;
        padding-left: 0;
    }
}
