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

body.auth-page {
    margin: 0;
    color: #32363f;
    background: #eef2f5;
    font-family: Inter, "Segoe UI", sans-serif;
}

body.auth-page .auth-shell {
    position: relative;
    display: grid;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: 2rem;
    isolation: isolate;
}

body.auth-page .auth-shell::before,
body.auth-page .auth-shell::after {
    position: absolute;
    inset: 0;
    content: "";
}

body.auth-page .auth-shell::before {
    z-index: -2;
    background: url("../images/login-img.webp") center / cover no-repeat;
}

body.auth-page .auth-shell::after {
    z-index: -1;
    background: rgba(13, 35, 52, 0.42);
}

body.auth-page .auth-screen {
    display: grid;
    width: min(100%, 31.5rem);
    place-items: center;
}

body.auth-page .auth-card {
    width: 100%;
    padding: 2.25rem 2.5rem;
    overflow: hidden;
    color: #32363f;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
}

body.auth-page .auth-card--register {
    max-height: calc(100dvh - 4rem);
}

body.auth-page .auth-card__scroll {
    max-height: calc(100dvh - 8.5rem);
    overflow-y: auto;
    padding: 0.1rem 0.4rem 0.1rem 0;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

body.auth-page .auth-card__scroll::-webkit-scrollbar {
    width: 0.3rem;
}

body.auth-page .auth-card__scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 1rem;
}

body.auth-page .auth-brand {
    margin-bottom: 1.5rem;
    text-align: left;
}

body.auth-page .auth-brand__logo {
    display: inline-block;
    width: 8.75rem;
    height: auto;
}

body.auth-page .auth-title {
    margin: 0;
    color: #30343b;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-align: left;
}

body.auth-page .auth-subtitle {
    margin: 0.5rem 0 1.75rem;
    color: #697386;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.auth-page .auth-form {
    display: grid;
    gap: 1rem;
}

body.auth-page .auth-field {
    display: grid;
    gap: 0.45rem;
}

body.auth-page .auth-field__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.auth-page .auth-field label,
body.auth-page .auth-modal-label {
    margin: 0;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 600;
}

body.auth-page .auth-field__header a,
body.auth-page .auth-switch a {
    color: #1683e8;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

body.auth-page .auth-field__header a:hover,
body.auth-page .auth-switch a:hover {
    color: #0d67bd;
    text-decoration: underline;
}

body.auth-page .auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

body.auth-page .auth-input {
    width: 100%;
    height: 3rem;
    padding: 0 0.9rem;
    color: #30343b;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 0.5rem;
    box-shadow: none;
}

body.auth-page .auth-input::placeholder {
    color: #9aa2af;
    opacity: 1;
}

body.auth-page .auth-input:focus {
    background: #fff;
    border-color: #1683e8;
    box-shadow: 0 0 0 0.2rem rgba(22, 131, 232, 0.14);
}

body.auth-page .auth-options {
    margin-top: -0.15rem;
    color: #596273;
    font-size: 0.8rem;
}

body.auth-page .auth-checkbox {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    cursor: pointer;
}

body.auth-page .auth-checkbox input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #1683e8;
}

body.auth-page .auth-action-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

body.auth-page .auth-submit,
body.auth-page .auth-secondary-action {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
}

body.auth-page .auth-submit {
    color: #fff;
    background: #1683e8;
    border: 1px solid #1683e8;
    box-shadow: none;
}

body.auth-page .auth-submit:hover,
body.auth-page .auth-submit:focus {
    color: #fff;
    background: #0d70ce;
    border-color: #0d70ce;
}

body.auth-page .auth-secondary-action {
    color: #3f4651;
    background: #fff;
    border: 1px solid #d8dde5;
}

body.auth-page .auth-secondary-action:hover,
body.auth-page .auth-secondary-action:focus {
    color: #1683e8;
    background: #f8fafc;
    border-color: #aeb9c8;
}

body.auth-page .auth-switch {
    margin: 1.4rem 0 0;
    color: #697386;
    font-size: 0.84rem;
    text-align: center;
}

body.auth-page .auth-alert {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

body.auth-page .auth-alert ul {
    font-size: 0.82rem;
}

body.auth-page .auth-role-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

body.auth-page .modal-content {
    color: #32363f;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.2);
}

body.auth-page .modal-header {
    border-bottom-color: #e4e7ec;
}

body.auth-page .modal .btn-primary {
    background: #1683e8;
    border-color: #1683e8;
}

body.auth-page .modal .btn-primary:hover,
body.auth-page .modal .btn-primary:focus {
    background: #0d70ce;
    border-color: #0d70ce;
}

body.auth-page .modal .btn-success {
    background: #168b60;
    border-color: #168b60;
}

body.auth-page .modal .list-group-item,
body.auth-page .modal .card-body {
    color: #4b5563;
    background: #fff;
    border-color: #e4e7ec;
}

@media (max-width: 575.98px) {
    body.auth-page .auth-shell {
        align-items: start;
        overflow-y: auto;
        padding: 1rem;
    }

    body.auth-page .auth-card {
        padding: 1.75rem 1.25rem;
    }

    body.auth-page .auth-card--register {
        max-height: none;
    }

    body.auth-page .auth-card__scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    body.auth-page .auth-brand__logo {
        width: 8rem;
    }

    body.auth-page .auth-title {
        font-size: 1.55rem;
    }

    body.auth-page .auth-action-row {
        grid-template-columns: 1fr;
    }
}
