/* Site-wide font: Inter Regular / Medium / Bold via Google Fonts */
html,
body {
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body .navbar,
body .btn,
body .form-control,
body .dropdown-menu,
body .well,
body .panel,
body .alert,
body .table,
body input,
body select,
body textarea {
    font-family: inherit;
}

/* Auth pages: signin, signup, resetpassword */

html:has(.auth-page) {
    height: 100%;
}

body:has(.auth-page),
body.is-auth-page {
    background: #f8f9fa;
    min-height: 100%;
    padding-bottom: 0;
    overflow-x: hidden;
}

body:has(.auth-page) > nav.navbar,
body.is-auth-page > nav.navbar {
    display: none;
}

.auth-page {
    --auth-radius: 2px;
    --auth-input-bg: #e8f0fe;
    --auth-border: #e5e7eb;
    box-sizing: border-box;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 32px;
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
}

.auth-page__brand {
    margin-bottom: 28px;
    text-align: center;
}

.auth-page__brand a {
    display: inline-block;
}

.auth-page__brand img {
    display: block;
    max-width: 280px;
    max-height: 64px;
    width: auto;
    height: auto;
}

.auth-page__lang {
    position: absolute;
    top: 16px;
    right: 16px;
}

.auth-page--rtl .auth-page__lang {
    right: auto;
    left: 16px;
}

.auth-page__lang > .dropdown-toggle {
    color: #5c6370;
    font-size: 13px;
    text-decoration: none;
}

.auth-page__lang > .dropdown-toggle:hover,
.auth-page__lang > .dropdown-toggle:focus {
    color: #1f2933;
    text-decoration: none;
}

.auth-page__card {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 36px 36px 32px;
}

.auth-page__title {
    margin: 0 0 22px;
    color: #1f2933;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-page__card .form-group {
    margin-bottom: 14px;
}

.auth-page__card .control-label {
    display: none;
}

.auth-page__card .form-control {
    height: 46px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: var(--auth-radius);
    background: #fff;
    box-shadow: none;
    color: #202124;
}

.auth-page__card .form-control::-webkit-input-placeholder {
    color: #8b95a1;
    opacity: 1;
}

.auth-page__card .form-control::-moz-placeholder {
    color: #8b95a1;
    opacity: 1;
}

.auth-page__card .form-control:-ms-input-placeholder {
    color: #8b95a1;
}

.auth-page__card .form-control::placeholder {
    color: #8b95a1;
    opacity: 1;
}

.auth-page__card .form-control:focus {
    border-color: #c5c9d0;
    background: #fff;
    box-shadow: none;
    outline: 0;
}

.auth-page__captcha {
    margin: 8px 0 16px;
    overflow-x: auto;
}

.auth-page__google {
    margin-top: 16px;
    overflow-x: auto;
}

.auth-page__google .g_id_signin {
    display: flex;
    justify-content: center;
}

.auth-page__card .checkbox {
    margin-top: 4px;
    margin-bottom: 16px;
}

.auth-page__card .checkbox label {
    color: #4b5563;
    font-size: 13px;
    font-weight: 400;
}

.auth-page__card .checkbox a {
    color: #1a73e8;
}

.auth-page__actions {
    margin-top: 8px;
}

.auth-page__actions .btn-primary {
    min-height: 40px;
    padding: 8px 22px;
    border: 0;
    border-radius: var(--auth-radius);
    background: #1a73e8;
    box-shadow: none;
    font-weight: 500;
}

.auth-page__actions .btn-primary:hover,
.auth-page__actions .btn-primary:focus {
    background: #1765cc;
}

.auth-page__actions .btn-primary:active,
.auth-page__actions .btn-primary:focus {
    outline: 0;
    box-shadow: none;
}

.auth-page__actions:not(.auth-page__actions--split) .btn-primary {
    width: 100%;
}

.auth-page__actions--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-page .forgot-password {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
}

.auth-page__actions--split .forgot-password {
    color: #1a73e8;
    font-size: 14px;
}

.auth-page__actions--split .forgot-password:hover,
.auth-page__actions--split .forgot-password:focus {
    color: #174ea6;
    text-decoration: underline;
}

.auth-page__footer {
    margin: 20px 0 0;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.auth-page__footer a {
    color: #1a73e8;
    font-weight: 500;
}

.auth-page__footer a:hover,
.auth-page__footer a:focus {
    color: #174ea6;
}

.auth-page__extra {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    color: #4b5563;
}

.auth-page .alert {
    border-radius: var(--auth-radius);
}

@media (max-width: 767px) {
    .auth-page {
        justify-content: flex-start;
        padding: 40px 16px 24px;
        padding-top: calc(40px + env(safe-area-inset-top, 0px));
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        padding-left: calc(16px + env(safe-area-inset-left, 0px));
    }

    .auth-page__brand {
        margin-bottom: 22px;
    }

    .auth-page__brand img {
        max-width: 240px;
        max-height: 56px;
    }

    .auth-page__card,
    .auth-page__extra {
        max-width: 100%;
    }

    .auth-page__card {
        padding: 28px 20px 24px;
    }

    .auth-page__title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .auth-page__card .form-control {
        font-size: 16px;
        height: 46px;
    }

    .auth-page__actions .btn-primary {
        min-height: 44px;
        font-size: 16px;
    }

    .auth-page__actions--split .forgot-password {
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .auth-page__lang {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
    }

    .auth-page--rtl .auth-page__lang {
        right: auto;
        left: calc(12px + env(safe-area-inset-left, 0px));
    }
}

@media (max-width: 360px) {
    .auth-page__actions--split {
        flex-wrap: wrap;
    }

    .auth-page__actions--split .btn-primary {
        width: 100%;
    }
}

