/* ============================================================
   Sign in
   One card, two halves. Sized to sit inside a laptop screen
   without scrolling: the section's own 80px band is dropped and
   every measure inside is set in a compact scale.
   ============================================================ */

.section.section-signin {
    padding-top: 26px;
    padding-bottom: 26px;
}

.signin-shell {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    max-width: 880px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 33, 61, .08);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(24, 39, 75, .1);
}

/* ---------- Left: the brand half ---------- */

.signin-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    padding: 32px 34px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, var(--primary_color), #152a51 85%);
}

.signin-panel:before,
.signin-panel:after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

.signin-panel:before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -110px;
}

.signin-panel:after {
    width: 200px;
    height: 200px;
    bottom: -115px;
    left: -70px;
}

.signin-panel > * {
    position: relative;
    z-index: 1;
}

.signin-brand img {
    max-width: 136px;
    max-height: 38px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.signin-kicker {
    margin: 0 0 10px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    opacity: .75;
}

.signin-message {
    max-width: 320px;
}

.signin-message h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.signin-message p:not(.signin-kicker) {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: .86rem;
    line-height: 1.6;
}

.signin-proof {
    font-size: .76rem;
    color: rgba(255, 255, 255, .78);
}

.signin-proof i {
    margin-right: 8px;
    color: #9ef0cb;
}

/* ---------- Right: the form half ---------- */

.signin-form-panel {
    display: flex;
    align-items: center;
    padding: 32px 38px;
}

.signin-form {
    width: 100%;
    max-width: 320px;
    margin: auto;
}

.signin-form-heading {
    margin-bottom: 20px;
}

.signin-form-heading h2 {
    margin: 0 0 5px;
    color: #14213d;
    font-size: 1.32rem;
    font-weight: 700;
}

.signin-form-heading p {
    margin: 0;
    color: #68758b;
    font-size: .84rem;
    line-height: 1.5;
}

.signin-field {
    margin-bottom: 13px;
}

.signin-label {
    display: block;
    margin-bottom: 5px;
    color: #14213d;
    font-size: .8rem;
    font-weight: 650;
}

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

.signin-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    font-size: .84rem;
    color: #92a0b5;
    transform: translateY(-50%);
}

.signin-input-wrap .form-control {
    height: 42px;
    padding-left: 38px;
    border: 1px solid #e5eaf2;
    border-radius: 9px;
    font-size: .88rem;
    color: #14213d;
    background: #fbfcfe;
    box-shadow: none;
}

.signin-input-wrap .form-control:focus {
    border-color: var(--primary_color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(32, 115, 255, .12);
}

.signin-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    padding: 5px;
    border: 0;
    font-size: .84rem;
    color: #718099;
    background: transparent;
    transform: translateY(-50%);
}

.signin-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -1px 0 16px;
    font-size: .8rem;
}

.signin-options .form-check {
    margin: 0;
    min-height: auto;
}

.signin-options .form-check-input:checked {
    background-color: var(--primary_color);
    border-color: var(--primary_color);
}

.signin-options a,
.signin-register a {
    font-weight: 700;
}

.signin-submit {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(32, 115, 255, .22);
}

.signin-register {
    margin: 16px 0 0;
    color: #68758b;
    font-size: .82rem;
    text-align: center;
}

.signin-form .login-with {
    margin-top: 18px !important;
}

.signin-form .login-with-divider span {
    padding-inline: 10px;
    background: #fff;
    font-size: .76rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 850px) {
    .signin-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .signin-panel {
        gap: 18px;
        padding: 24px 26px;
    }

    .signin-message {
        max-width: 400px;
    }

    .signin-message h1 {
        font-size: 1.4rem;
    }

    .signin-message p:not(.signin-kicker),
    .signin-proof {
        display: none;
    }

    .signin-form-panel {
        padding: 28px 26px;
    }
}

@media (max-width: 480px) {
    .section.section-signin {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .signin-shell {
        border-radius: 14px;
    }

    .signin-panel,
    .signin-form-panel {
        padding: 22px 20px;
    }

    .signin-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* A short viewport is the case this page kept failing: trim the band and the
   brand half's breathing room rather than let the card run off the screen. */
@media (min-width: 851px) and (max-height: 760px) {
    .section.section-signin {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .signin-panel {
        padding: 26px 30px;
    }

    .signin-form-panel {
        padding: 26px 34px;
    }

    .signin-message h1 {
        font-size: 1.4rem;
    }

    .signin-message p:not(.signin-kicker) {
        display: none;
    }
}
