/* =========================================================
   LOGIN PAGE
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

.login-page {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: grid;
    place-items: center;

    padding: 28px 20px;

    background:
        radial-gradient(
            circle at 50% 5%,
            rgba(7, 148, 85, 0.08),
            transparent 34%
        ),
        #f4f7f6;
}


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.login-shell {
    width: min(100%, 460px);
    margin: auto;
}


/* =========================================================
   BRAND
   ========================================================= */

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    margin-bottom: 18px;
}

.login-brand-mark {
    width: 54px;
    height: 54px;

    border-radius: 14px;

    display: grid;
    place-items: center;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--hospital-green, #079455),
            #0bbf75
        );

    box-shadow:
        0 9px 24px
        rgba(7, 148, 85, 0.18);

    margin-bottom: 12px;
}

.login-brand-mark svg {
    width: 25px;
    height: 25px;

    fill: currentColor;
}

.login-brand h1 {
    margin: 0;

    font-size: 1.55rem;
    font-weight: 800;

    letter-spacing: -0.02em;

    color: #172033;
}

.login-brand p {
    margin: 4px 0 0;

    color: #667085;

    font-size: 0.78rem;

    line-height: 1.35;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    box-sizing: border-box;

    width: 100%;

    padding: 28px;

    border: 1px solid #dce4e1;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 16px 46px
        rgba(16, 24, 40, 0.07);
}

.login-card-head {
    margin-bottom: 22px;
}

.login-eyebrow {
    margin-bottom: 5px;

    color: var(--hospital-green-dark, #067647);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0 0 5px;

    font-size: 1.35rem;
    font-weight: 800;

    color: #172033;
}

.login-card-head p {
    margin: 0;

    color: #667085;

    font-size: 0.8rem;

    line-height: 1.4;
}


/* =========================================================
   LABELS
   ========================================================= */

.login-card .form-label {
    margin-bottom: 7px;

    color: #344054;

    font-size: 0.75rem;
    font-weight: 700;
}


/* =========================================================
   INPUTS
   ========================================================= */

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    width: 18px;
    height: 18px;

    color: #98a2b3;

    z-index: 2;

    pointer-events: none;
}

.login-input-icon svg,
.password-toggle svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-control {
    width: 100%;

    min-height: 46px;

    padding-left: 42px;
    padding-right: 44px;

    border-radius: 10px;
    border-color: #d7dfdc;

    font-size: 0.82rem;

    background: #fff;
}

.login-control:focus {
    border-color: #7fd5aa;

    box-shadow:
        0 0 0 0.2rem
        rgba(7, 148, 85, 0.10);
}



/* =========================================================
   LOGIN ALIGNMENT POLISH v1
   ========================================================= */

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;
}

.login-input-icon svg {
    display: block;
}

.password-toggle {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    display: grid;
    place-items: center;
}

.password-toggle svg {
    display: block;
}

.login-control {
    padding-left: 44px;
}

.login-submit {
    margin-top: 10px;
}

/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {
    position: absolute;

    right: 11px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    padding: 6px;

    border: 0;
    border-radius: 7px;

    display: grid;
    place-items: center;

    background: transparent;

    color: #667085;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--hospital-green-dark, #067647);

    background: #edf8f3;
}


/* =========================================================
   LOGIN OPTIONS
   ========================================================= */

.login-options {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 10px;

    width: 100%;

    min-height: 0;

    color: #475467;

    font-size: 0.75rem;
}

.login-options .form-check {
    width: fit-content;

    min-width: 0;

    margin: 0;
}

.login-options .form-check-label,
.login-options .form-check span {
    white-space: nowrap;
}

.login-options .form-check-input:checked {
    background-color: var(--hospital-green, #079455);
    border-color: var(--hospital-green, #079455);
}


/* =========================================================
   ACCOUNT RECOVERY NOTICE
   ========================================================= */

.recovery-notice {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #b7e4cd;
    border-radius: 9px;

    background: #f0faf5;

    color: #35624b;

    padding: 9px 11px;

    font-size: 0.7rem;

    line-height: 1.4;
}


/*
   Also handles the recovery text even if it currently does
   not have the recovery-notice class.
*/

.login-options > span:not(.form-check-input),
.login-options > div:not(.form-check) {
    max-width: 100%;

    overflow-wrap: anywhere;
}


/* =========================================================
   OLD FORGOT PASSWORD CLASS
   ========================================================= */

.forgot-password-link {
    border: 0;

    padding: 0;

    background: transparent;

    color: var(--hospital-green-dark, #067647);

    font-size: 0.75rem;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.forgot-password-link:hover,
.forgot-password-link:focus {
    color: var(--hospital-green, #079455);

    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-submit {
    width: 100%;

    min-height: 44px;

    border: 0;
    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--hospital-green, #079455),
            #08aa67
        );

    font-size: 0.82rem;
    font-weight: 750;

    box-shadow:
        0 7px 16px
        rgba(7, 148, 85, 0.12);
}

.login-submit:hover,
.login-submit:focus {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #067647,
            #079455
        );
}


/* =========================================================
   ERRORS
   ========================================================= */

.login-error {
    min-height: 18px;

    color: #b42318;

    font-size: 0.72rem;

    line-height: 1.4;
}


/* =========================================================
   QUICK ACCESS
   ========================================================= */

.quick-access {
    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #e5eae8;
}

.quick-access-head {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin-bottom: 10px;
}

.quick-access-head span {
    color: #344054;

    font-size: 0.76rem;
    font-weight: 750;
}

.quick-access-head small {
    color: #98a2b3;

    font-size: 0.68rem;
}

.quick-role-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.quick {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    text-align: left;

    border: 1px solid #dfe5e2;
    border-radius: 10px;

    background: #fbfdfc;

    color: #344054;

    padding: 10px;

    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        transform 0.16s ease;
}

.quick:hover {
    border-color: #86d8ae;

    background: #f0faf5;

    transform: translateY(-1px);
}

.quick-role-icon {
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    border-radius: 8px;

    display: grid;
    place-items: center;

    color: var(--hospital-green-dark, #067647);

    background: #e8f7ef;

    font-size: 0.68rem;
    font-weight: 800;
}

.quick strong {
    display: block;

    color: #344054;

    font-size: 0.7rem;

    line-height: 1.2;
}

.quick small {
    display: block;

    margin-top: 2px;

    color: #98a2b3;

    font-size: 0.6rem;

    line-height: 1.25;
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    margin-top: 14px;

    text-align: center;

    color: #98a2b3;

    font-size: 0.68rem;
}


/* =========================================================
   SHORT LAPTOP / DESKTOP SCREENS
   ========================================================= */

@media (max-height: 780px) and (min-width: 521px) {

    .login-page {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .login-brand {
        margin-bottom: 12px;
    }

    .login-brand-mark {
        width: 46px;
        height: 46px;

        margin-bottom: 8px;

        border-radius: 12px;
    }

    .login-brand-mark svg {
        width: 22px;
        height: 22px;
    }

    .login-brand h1 {
        font-size: 1.35rem;
    }

    .login-brand p {
        font-size: 0.72rem;
    }

    .login-card {
        padding: 22px 24px;
    }

    .login-card-head {
        margin-bottom: 16px;
    }

    .login-control {
        min-height: 43px;
    }

    .login-options {
        gap: 7px;
    }

    .login-footer {
        margin-top: 10px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .login-page {
        padding: 24px 18px;
    }

    .login-shell {
        width: min(100%, 440px);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .login-page {
        display: block;

        min-height: 100dvh;

        padding: 22px 14px;
    }

    .login-shell {
        width: 100%;

        margin: 0 auto;
    }

    .login-brand {
        margin-bottom: 14px;
    }

    .login-brand-mark {
        width: 48px;
        height: 48px;

        margin-bottom: 9px;
    }

    .login-brand h1 {
        font-size: 1.35rem;
    }

    .login-brand p {
        max-width: 300px;

        font-size: 0.72rem;
    }

    .login-card {
        padding: 22px 18px;

        border-radius: 14px;
    }

    .login-card-head {
        margin-bottom: 18px;
    }

    .login-card h2 {
        font-size: 1.25rem;
    }

    .login-control {
        min-height: 44px;

        font-size: 0.8rem;
    }

    .login-options {
        flex-direction: column;

        align-items: stretch;

        gap: 9px;
    }

    .login-options .form-check {
        width: auto;
    }

    .recovery-notice {
        font-size: 0.68rem;
    }

    .quick-role-grid {
        grid-template-columns: 1fr;
    }

    .login-footer {
        margin-top: 12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .login-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .login-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .login-brand h1 {
        font-size: 1.22rem;
    }

    .login-control {
        font-size: 0.76rem;
    }
}