/* =========================================================
   SHHC LOGIN PAGE
   Page-specific styling only.

   Global base styling is handled by style.css.
========================================================= */


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

.login-page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 20px;

    position: relative;

    overflow-x: hidden;
    overflow-y: auto;

    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(11, 110, 79, 0.11),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(11, 110, 79, 0.08),
            transparent 32%
        ),
        #f5f8f6;
}

.login-page::before,
.login-page::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.login-page::before {
    width: 360px;
    height: 360px;

    top: -190px;
    right: -120px;

    background: rgba(11, 110, 79, 0.06);
}

.login-page::after {
    width: 300px;
    height: 300px;

    bottom: -170px;
    left: -110px;

    background: rgba(11, 110, 79, 0.05);
}


/* =========================================================
   LOGIN SHELL
========================================================= */

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

    /*
        Keep the desktop card within the visible browser
        viewport instead of forcing a fixed minimum height.
    */
    height: min(
        610px,
        calc(100dvh - 40px)
    );

    min-height: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.95fr);

    position: relative;

    z-index: 1;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e0e8e4;

    border-radius: 20px;

    box-shadow:
        0 22px 60px
        rgba(22, 52, 42, 0.10);
}


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

.login-brand-panel {
    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    min-width: 0;

    min-height: 0;

    padding: clamp(32px, 4vw, 48px);

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0b6e4f 0%,
            #07563e 62%,
            #064b37 100%
        );

    color: #ffffff;
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 50%;

    pointer-events: none;
}

.login-brand-panel::before {
    width: 430px;
    height: 430px;

    right: -250px;
    bottom: -250px;
}

.login-brand-panel::after {
    width: 260px;
    height: 260px;

    right: -135px;
    bottom: -135px;
}

.login-brand-content,
.login-brand-footer {
    position: relative;

    z-index: 1;
}


/* =========================================================
   LOGO
========================================================= */

.login-logo {
    width: 70px;
    height: 70px;

    display: block;

    object-fit: contain;

    margin-bottom: 24px;

    padding: 8px;

    box-sizing: border-box;

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

    border-radius: 16px;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.10);
}


/* =========================================================
   EYEBROW
========================================================= */

.login-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.6px;

    line-height: 1.4;

    text-transform: uppercase;
}


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

.login-brand-panel h1 {
    max-width: 440px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(
        28px,
        3.5vw,
        40px
    );

    font-weight: 750;

    line-height: 1.12;

    letter-spacing: -0.6px;
}

.login-brand-panel p {
    max-width: 470px;

    margin: 16px 0 0;

    color: rgba(255, 255, 255, 0.80);

    font-size: 13px;

    line-height: 1.65;
}


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

.login-brand-footer {
    display: flex;

    align-items: center;

    gap: 9px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 10px;

    line-height: 1.45;
}

.login-brand-footer::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #b8e3cc;

    box-shadow:
        0 0 0 4px
        rgba(184, 227, 204, 0.10);
}


/* =========================================================
   FORM PANEL
========================================================= */

.login-form-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 0;

    padding: clamp(30px, 4vw, 48px);

    background: #ffffff;

    overflow-y: auto;
}

.login-form-wrap {
    width: min(100%, 390px);

    margin: auto;
}


/* =========================================================
   FORM HEADER
========================================================= */

.login-form-header {
    margin-bottom: 26px;
}

.login-form-header .login-eyebrow {
    margin-bottom: 7px;

    color: #0b6e4f;

    letter-spacing: 1.2px;
}

.login-form-header h2 {
    margin: 0;

    color: #17221f;

    font-size: 27px;

    font-weight: 750;

    line-height: 1.2;
}

.login-form-header p {
    margin: 8px 0 0;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 16px;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.login-field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.login-field label {
    color: #34413c;

    font-size: 12px;

    font-weight: 750;

    line-height: 1.3;
}

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

.login-input-wrap input {
    width: 100%;

    min-height: 46px;

    box-sizing: border-box;

    padding: 10px 13px;

    border: 1px solid #d5dfda;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #17221f;

    font: inherit;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-input-wrap input::placeholder {
    color: #9aa5a0;
}

.login-input-wrap input:hover {
    border-color: #b8c9c1;
}

.login-input-wrap input:focus {
    border-color: #0b6e4f;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(11, 110, 79, 0.10);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.login-submit {
    width: 100%;

    min-height: 46px;

    margin-top: 3px;

    padding: 10px 18px;

    border: 1px solid #0b6e4f;

    border-radius: 8px;

    background: #0b6e4f;

    color: #ffffff;

    cursor: pointer;

    font: inherit;

    font-size: 13px;

    font-weight: 750;

    line-height: 1.2;

    box-shadow:
        0 7px 16px
        rgba(11, 110, 79, 0.14);

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.login-submit:hover {
    background: #095c42;

    box-shadow:
        0 9px 20px
        rgba(11, 110, 79, 0.18);

    transform: translateY(-1px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:focus-visible {
    outline: 3px solid
        rgba(11, 110, 79, 0.18);

    outline-offset: 2px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.login-security-note {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 18px;

    padding-top: 16px;

    border-top: 1px solid #e8eeeb;

    color: #7b8581;

    font-size: 10px;

    line-height: 1.55;
}

.login-security-note::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    margin-top: 4px;

    border-radius: 50%;

    background: #0b6e4f;
}


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

@media (max-height: 720px) and (min-width: 901px) {

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

    .login-shell {
        height: calc(100dvh - 28px);

        border-radius: 16px;
    }

    .login-brand-panel {
        padding: 28px 34px;
    }

    .login-logo {
        width: 58px;
        height: 58px;

        margin-bottom: 17px;

        border-radius: 13px;
    }

    .login-brand-panel h1 {
        font-size: 30px;
    }

    .login-brand-panel p {
        margin-top: 11px;

        font-size: 12px;

        line-height: 1.5;
    }

    .login-form-panel {
        padding: 28px 34px;
    }

    .login-form-header {
        margin-bottom: 20px;
    }

    .login-form-header h2 {
        font-size: 24px;
    }

    .login-form-header p {
        margin-top: 6px;
    }

    .login-form {
        gap: 13px;
    }

    .login-input-wrap input,
    .login-submit {
        min-height: 42px;
    }

    .login-security-note {
        margin-top: 14px;
        padding-top: 13px;
    }
}


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

@media (max-width: 900px) {

    .login-page {
        padding: 20px;
    }

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

        height: auto;

        grid-template-columns: 1fr;

        min-height: 0;

        overflow: hidden;
    }

    .login-brand-panel {
        min-height: 290px;

        padding: 34px;
    }

    .login-brand-panel h1 {
        font-size: 32px;
    }

    .login-brand-footer {
        margin-top: 28px;
    }

    .login-form-panel {
        padding: 36px 34px 40px;

        overflow: visible;
    }
}


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

@media (max-width: 560px) {

    .login-page {
        align-items: flex-start;

        padding: 14px;
    }

    .login-shell {
        width: 100%;

        border-radius: 16px;
    }

    .login-brand-panel {
        min-height: 0;

        padding: 27px 24px;
    }

    .login-logo {
        width: 62px;
        height: 62px;

        margin-bottom: 20px;

        padding: 7px;

        border-radius: 14px;
    }

    .login-brand-panel h1 {
        font-size: 27px;
    }

    .login-brand-panel p {
        margin-top: 12px;

        font-size: 13px;

        line-height: 1.6;
    }

    .login-form-panel {
        padding: 29px 24px 34px;
    }

    .login-form-header {
        margin-bottom: 23px;
    }

    .login-form-header h2 {
        font-size: 24px;
    }

    .login-form {
        gap: 15px;
    }
}


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

@media (max-width: 380px) {

    .login-page {
        padding: 10px;
    }

    .login-brand-panel {
        padding: 23px 20px;
    }

    .login-brand-panel h1 {
        font-size: 24px;
    }

    .login-brand-panel p {
        font-size: 12px;
    }

    .login-form-panel {
        padding: 25px 20px 29px;
    }

    .login-form-header h2 {
        font-size: 22px;
    }

    .login-input-wrap input,
    .login-submit {
        min-height: 44px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .login-input-wrap input,
    .login-submit {
        transition: none;
    }
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .login-page {
        min-height: auto;

        padding: 0;

        background: #ffffff;
    }

    .login-shell {
        width: 100%;

        height: auto;

        border: 0;

        border-radius: 0;

        box-shadow: none;
    }
}

.login-error {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid #f0c7c7;
    border-radius: 8px;
    background: #fff5f5;
    color: #a12626;
    font-size: 13px;
    line-height: 1.45;
}
