/* Campus Connect BioSync — scoped authentication UI */

.biosync-login {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f0f4f8;
    color: #203347;
    font-family: inherit;
}

.biosync-login *,
.biosync-login *::before,
.biosync-login *::after {
    box-sizing: border-box;
}

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-panel {
    width: min(100%, 1040px);
    min-height: 610px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    background: #fff;
    border: 1px solid #e0e8ef;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(24, 62, 89, .10);
}

.login-brand-panel {
    background: linear-gradient(155deg, #183e59, #102c43);
    color: #fff;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand-symbol,
.login-mobile-symbol {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255,255,255,.12);
    display: grid;
    place-items: center;
}

.login-brand strong,
.login-brand span {
    display: block;
}

.login-brand strong {
    font-size: 18px;
}

.login-brand span {
    font-size: 12px;
    color: #d5e6f0;
    margin-top: 3px;
}

.login-eyebrow,
.login-form-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.login-eyebrow {
    color: #a9d9e8;
}

.login-brand-message h1 {
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.17;
    letter-spacing: -.035em;
    margin: 18px 0;
    color: #fff;
}

.login-brand-message p {
    font-size: 15px;
    line-height: 1.8;
    color: #d5e6f0;
}

.login-brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.login-brand-features span {
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    padding: 8px 12px;
    font-size: 11px;
    color: #e7f1f7;
}

.login-brand-bottom {
    color: #b9d1df;
    font-size: 12px;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 52px 26px;
}

.login-form-inner {
    width: 100%;
    max-width: 370px;
    margin: auto;
}

.login-form-eyebrow {
    color: #527b94;
}

.login-heading h2 {
    margin: 12px 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #183e59;
}

.login-heading p {
    margin: 0;
    color: #728293;
    font-size: 14px;
    line-height: 1.6;
}

.login-form {
    margin-top: 32px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #30475a;
}

.login-field input {
    width: 100%;
    height: 48px;
    border: 1px solid #d9e3eb;
    border-radius: 9px;
    padding: 0 15px;
    background: #fff;
    color: #203347;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.login-field input:focus {
    outline: none;
    border-color: #32769c;
    box-shadow: 0 0 0 3px rgba(50,118,156,.12);
}

.login-submit {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 9px;
    background: #183e59;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background .2s;
}

.login-submit:hover {
    background: #245777;
}

.login-submit:focus-visible {
    outline: 3px solid #69a6c8;
    outline-offset: 3px;
}

.login-security-note {
    text-align: center;
    margin-top: 24px;
    color: #8795a2;
    font-size: 12px;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #8493a0;
    font-size: 11px;
}

.login-footer strong {
    color: #526b7e;
}

.login-alert {
    padding: 12px 14px;
    margin-top: 22px;
    border: 1px solid #f2c9c9;
    border-radius: 9px;
    background: #fff4f4;
    color: #a52d2d;
    font-size: 13px;
}

.login-mobile-brand {
    display: none;
}

@media (max-width: 760px) {
    .login-shell {
        padding: 16px;
    }

    .login-panel {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 480px;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 32px 26px 24px;
        min-height: 520px;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        color: #183e59;
        font-size: 15px;
    }

    .login-mobile-symbol {
        background: #e7f0f5;
        color: #183e59;
    }

    .login-form-inner {
        margin: 42px auto;
    }

    .login-heading h2 {
        font-size: 27px;
    }

    .login-footer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .login-shell {
        padding: 10px;
    }

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