/* Dedicated login styles. All selectors are scoped to the authentication page. */
.pharma-login { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: auto; background: #fff; color: #244435; font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif !important; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.pharma-login :is(h1, h2, p, input, button, a, label) { font-family: inherit !important; }
.pharma-login-brand { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: calc(100dvh - 40px); margin: 20px 0 20px 20px; border-radius: 26px; background: radial-gradient(ellipse at 90% 75%, #cde9d9 0, transparent 50%), linear-gradient(145deg, #f0f8f3 0%, #e6f3eb 100%); overflow: hidden; }
.pharma-login-brand::after { content: ''; position: absolute; width: 460px; height: 460px; border: 1px solid #20985c0e; border-radius: 50%; top: 30%; left: -330px; box-shadow: 0 0 0 65px #20985c04, 0 0 0 130px #20985c03; pointer-events: none; }
.pharma-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 42px 0; z-index: 1; }
.pharma-brand-logo { width: 164px; height: 45px; object-fit: fill; }
.pharma-brand-top > span { max-width: 140px; text-align: right; color: #739282; font-size: 8px; font-weight: 500; letter-spacing: 1.5px; line-height: 1.8; }
.pharma-brand-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 42px 48px 18px; }
.pharma-brand-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 8px; font-weight: 600; letter-spacing: 1.3px; color: #52856a; margin-bottom: 19px; }
.pharma-brand-eyebrow > span, .pharma-login-welcome > span { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #20985c; }
.pharma-login-brand h1 { font-size: clamp(30px, 3vw, 46px); font-weight: 600; line-height: 1.3; letter-spacing: -1.4px; color: #1b4a32; margin: 0 0 20px; }
.pharma-brand-content > p { max-width: 390px; font-size: 13px; line-height: 1.95; color: #6c8a78; margin: 0; }
.pharma-brand-visual { position: relative; display: grid; place-items: center; height: 225px; margin-top: 22px; }
.pharma-molecule { position: absolute; width: 100%; height: 100%; color: #91c2a7; opacity: .35; }
.pharma-care-card { position: relative; z-index: 1; width: 224px; padding: 24px 28px; background: linear-gradient(145deg, #fffffffa, #ffffffc9); border: 1px solid #ffffffd9; border-radius: 22px; box-shadow: 0 16px 45px #38664a0d; transform: rotate(-5deg); }
.pharma-care-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #eaf6ee; color: #20985c; font-size: 25px; margin-bottom: 16px; }
.pharma-care-card > span { display: block; color: #86a28f; font-size: 7px; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 7px; }
.pharma-care-card > strong { display: block; color: #356449; font-size: 14px; font-weight: 500; line-height: 1.7; }
.pharma-care-line { width: 36px; height: 3px; background: #20985c; border-radius: 3px; margin-top: 17px; }
.pharma-care-badge { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 15px; border: 1px solid #ffffffbf; background: #ffffffed; box-shadow: 0 9px 28px #315a3f0d; border-radius: 12px; bottom: 9px; right: 6px; transform: rotate(3deg); color: #547a62; font-size: 9px; }
.pharma-care-badge > i { color: #20985c; font-size: 16px; }
.pharma-visual-cross { position: absolute; color: #78b995; font-size: 30px; font-weight: 400; top: 18px; right: 34px; }
.pharma-brand-bottom { display: flex; gap: 15px; align-items: center; padding: 10px 48px 28px; font-size: 9px; color: #749981; }
.pharma-brand-rule { height: 1px; width: 27px; background: #9ac5ac; }
.pharma-brand-bottom > span:last-child { display: flex; align-items: center; gap: 12px; }
.pharma-brand-bottom i { width: 3px; height: 3px; background: #9bb9a6; border-radius: 50%; }
.pharma-login-panel { display: flex; flex-direction: column; min-width: 0; min-height: 100dvh; }
.pharma-login-panel-top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 42px 42px 0; color: #8a9b90; font-size: 9px; }
.pharma-login-panel-top > i { font-size: 12px; color: #7e9b89; }
.pharma-login-card { width: min(100%, 390px); margin: auto; padding: 42px 4px; }
.pharma-login-welcome { display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: 1.5px; font-weight: 600; color: #829789; margin-bottom: 16px; }
.pharma-login-card h2 { font-size: 36px; color: #233d2e; font-weight: 600; letter-spacing: -1.2px; line-height: 1.3; margin: 0 0 13px; }
.pharma-login-description { font-size: 13px; color: #6a7f71; line-height: 1.85; margin: 0 0 31px; }
.pharma-login-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pharma-login-field { margin-bottom: 21px; }
.pharma-login-field label { display: block; color: #425a4b; font-size: 13px; font-weight: 500; margin: 0 0 9px; }
.pharma-login-input { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 15px; border: 1px solid #e0e8e3; border-radius: 9px; background: #fcfdfc; transition: border-color .18s, box-shadow .18s, background .18s; }
.pharma-login-input > i { font-size: 15px; color: #93a69a; width: 17px; text-align: center; flex-shrink: 0; }
.pharma-login-input:focus-within { background: #fff; border-color: #20985c; box-shadow: 0 0 0 3px #20985c12; }
.pharma-login-input:has(.invalid) { border-color: #cc5c57; }
.pharma-login-input input { min-width: 0; flex: 1; width: 100%; height: 48px; padding: 0; margin: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; outline: none !important; background: transparent !important; color: #294a35; font-size: 14px; font-weight: 400; line-height: normal; }
.pharma-login-input input::placeholder { color: #7c8e81; opacity: 1; }
.pharma-login-input input.valid.modified { outline: none; }
.pharma-password-toggle { display: grid; place-items: center; width: 30px; height: 32px; padding: 0; margin-right: -5px; flex-shrink: 0; border: 0; border-radius: 6px; background: transparent; color: #92a297; cursor: pointer; }
.pharma-password-toggle:hover { background: #eff6f1; color: #20985c; }
.pharma-field-error .validation-message { margin-top: 7px; color: #b64843; font-size: 11px; line-height: 1.6; }
.pharma-login-error { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; margin-bottom: 18px; color: #a3453f; border: 1px solid #f0dcd9; border-radius: 8px; background: #fff8f6; font-size: 11px; line-height: 1.8; }
.pharma-login-error > i { flex-shrink: 0; font-size: 14px; margin-top: 3px; }
.pharma-login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 20px; margin-top: 7px; border: 1px solid #20985c; border-radius: 9px; background: #20985c; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 12px #20985c18; transition: background .18s, box-shadow .18s; }
.pharma-login-submit > i { font-size: 11px; }
.pharma-login-submit:hover { background: #187a49; border-color: #187a49; box-shadow: 0 6px 18px #20985c26; }
.pharma-login :is(button, a):focus-visible { outline: 3px solid #8bc7a5; outline-offset: 3px; }
.pharma-login-form fieldset:disabled { opacity: .75; }
.pharma-login-form fieldset:disabled :is(button, input) { cursor: wait; }
.pharma-login-spinner { width: 15px; height: 15px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: pharma-login-spin .7s linear infinite; }
.pharma-login-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pharma-login-access { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 17px 0 0; color: #94a197; font-size: 9px; }
.pharma-login-access > i { color: #8aaa96; font-size: 12px; }
.pharma-login-help { display: flex; gap: 12px; align-items: flex-start; padding-top: 23px; margin-top: 29px; border-top: 1px solid #edf1ee; }
.pharma-login-help > i { color: #8ba994; font-size: 17px; padding-top: 2px; }
.pharma-login-help p { font-size: 11px; line-height: 1.9; color: #607a69; margin: 0; }
.pharma-login-help p span { color: #7e9084; }
.pharma-login-footer { display: flex; justify-content: space-between; gap: 12px; padding: 0 42px 28px; color: #a5b0a9; font-size: 8px; }
.pharma-login-footer strong { color: #81998a; font-weight: 500; }
@keyframes pharma-login-spin { to { transform: rotate(360deg); } }
@media (min-width: 1400px) {
    .pharma-brand-content { padding-left: 64px; padding-right: 64px; }
    .pharma-brand-visual { height: 260px; margin-top: 28px; }
    .pharma-login-card { width: 400px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .pharma-brand-content { padding: 35px 32px 18px; }
    .pharma-brand-top { padding-left: 30px; padding-right: 30px; }
    .pharma-brand-top > span { display: none; }
    .pharma-login-card { max-width: 350px; padding-left: 15px; padding-right: 15px; }
    .pharma-care-badge { right: 0; font-size: 8px; }
}
@media (max-width: 900px) {
    .pharma-login { display: flex; flex-direction: column; }
    .pharma-login-brand { min-height: 0; flex-shrink: 0; margin: 0; border-radius: 0; background: white; border-bottom: 1px solid #edf3ef; overflow: visible; }
    .pharma-login-brand::after, .pharma-brand-content, .pharma-brand-bottom { display: none; }
    .pharma-brand-top { padding: 20px 26px; }
    .pharma-brand-logo { width: 140px; height: 38px; }
    .pharma-brand-top > span { font-size: 7px; max-width: 125px; }
    .pharma-login-panel { min-height: 0; flex: 1; }
    .pharma-login-panel-top { display: none; }
    .pharma-login-card { width: 100%; max-width: 420px; padding: 36px 26px 28px; }
    .pharma-login-card h2 { font-size: 31px; }
    .pharma-login-description { margin-bottom: 27px; }
    .pharma-login-footer { justify-content: center; flex-wrap: wrap; padding: 10px 24px 22px; font-size: 8px; gap: 5px 16px; }
    .pharma-login-input input { font-size: 16px; }
}
@media (max-height: 740px) and (min-width: 901px) {
    .pharma-brand-content { padding-top: 24px; padding-bottom: 8px; }
    .pharma-brand-visual { height: 195px; margin-top: 14px; }
    .pharma-care-card { padding: 18px 24px; width: 208px; }
    .pharma-care-symbol { margin-bottom: 10px; width: 38px; height: 38px; font-size: 22px; }
    .pharma-brand-content > p { font-size: 12px; }
    .pharma-login-panel-top { padding-top: 32px; }
    .pharma-login-card { padding-top: 25px; padding-bottom: 25px; }
    .pharma-login-help { margin-top: 23px; padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .pharma-login *, .pharma-login *::before, .pharma-login *::after { transition: none !important; animation: none !important; }
}

