/* Auth pages: image on the left, form on the right */

body.auth-body {
    margin: 0;
    min-height: 100%;
    background: #ffffff;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    direction: ltr;
    align-items: stretch;
}

.auth-shell__visual {
    flex: 1 1 50%;
    min-height: 100vh;
    background-color: #8d7bc4;
    background-image:
        linear-gradient(160deg, rgba(196, 181, 253, 0.35), rgba(91, 75, 154, 0.25)),
        url('/assets/images/auth-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-shell__panel {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    direction: rtl;
    background: #ffffff;
    padding: 28px 56px 40px;
    box-sizing: border-box;
    overflow: auto;
}

.auth-shell__logo {
    align-self: flex-start;
    display: inline-flex;
    line-height: 0;
}

.auth-shell__logo img {
    display: block;
    width: auto;
    height: 42px;
}

.auth-shell__content {
    width: 100%;
    margin: auto 0;
    padding: 24px 0 12px;
    box-sizing: border-box;
}

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

.auth-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.4;
    font-weight: 800;
    color: #1d2939;
    text-align: right;
}

.auth-lead {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.9;
    color: #667085;
    text-align: right;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: #667085;
    text-align: right;
}

.auth-field .req {
    color: #f04438;
    margin-right: 2px;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #eaecf0;
    border-radius: 999px;
    background: #ffffff;
    color: #1d2939;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    box-sizing: border-box;
    outline: none;
}

.auth-field textarea {
    height: auto;
    min-height: 96px;
    padding: 14px 18px;
    border-radius: 18px;
    resize: vertical;
}

.auth-field--ltr input {
    direction: ltr;
    text-align: left;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
    color: #98a2b3;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    border-color: #7f56d9;
}

.auth-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #98a2b3 50%), linear-gradient(135deg, #98a2b3 50%, transparent 50%);
    background-position: 22px 22px, 16px 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 36px;
}

.auth-terms {
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: #98a2b3;
    text-align: right;
}

.auth-terms a {
    color: #6941c9;
    text-decoration: none;
}

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

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: #98a2b3;
    text-align: right;
}

.auth-check input {
    margin-top: 4px;
    flex: 0 0 auto;
}

.auth-check a {
    color: #6941c9;
    text-decoration: none;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 4px 0 0;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #5c4d9a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #4e4188;
    color: #ffffff;
}

.auth-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.auth-switch {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
    text-align: center;
}

.auth-switch a,
.auth-inline-link {
    color: #6941c9;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-inline-link:hover {
    text-decoration: underline;
}

.auth-resend {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #667085;
    text-align: right;
}

.auth-resend__btn {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6941c9;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.auth-resend__btn:disabled {
    color: #667085;
    font-weight: 500;
    cursor: default;
}

.auth-alerts {
    margin-bottom: 16px;
}

.auth-alerts .alert {
    border-radius: 14px;
    text-align: right;
}

.auth-alerts ul {
    margin: 0;
    padding-right: 18px;
}

/* Older auth screens that still use .account-box sit inside the same panel */
.auth-shell .page-account-box,
.auth-shell .account-box {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.auth-shell .account-box a.account-box-logo {
    display: none;
}

@media (max-width: 1199px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-shell__visual {
        display: none;
    }

    .auth-shell__panel {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        padding: 24px 20px 32px;
    }
}
