* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --navy: #123b70;
    --blue: #0878f9;
    --green: #16b66d;
    --muted: #72849d;
}
body {
    min-height: 80vh;
    font-family: 'Inter', Arial, sans-serif;
    color: #183b66;
    background: #edf6ff;
}
.page-background {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 38px;
    background:
        radial-gradient(ellipse at 5% 12%, rgba(24, 183, 150, .15), transparent 28%),
        radial-gradient(ellipse at 96% 86%, rgba(28, 112, 242, .14), transparent 32%),
        linear-gradient(135deg, #f4faff, #e8f4ff);
}
.login-card {
    width: min(1200px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(25, 77, 125, .17);
    border: 1px solid rgba(255,255,255,.9);
}
.welcome-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 42px 44px 28px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(145deg, #149ce2 0%, #0874c5 48%, #084a94 100%);
}
.welcome-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('assets/pharmacy-image.jpg') center / cover no-repeat;
    opacity: .28;
    mix-blend-mode: screen;
}
.welcome-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4,83,157,.35), rgba(0,57,123,.83));
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.brand-mark {
    width: 57px;
    height: 57px;
    flex: 0 0 57px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #11bd70, #078be0);
    box-shadow: 0 8px 22px rgba(0,0,0,.15);
    font-size: 27px;
    color: #fff;
}
.brand-mark span {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 19px;
    height: 19px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #21c879;
}
.brand-copy h1 {
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: -1.1px;
    line-height: 1.2;
    color: #fff;
}
.brand-copy h1 strong { color: #67f1ac; }
.brand-copy p {
    margin-top: 7px;
    font-size: 13px;
    color: rgba(255,255,255,.95);
    letter-spacing: .1px;
}
.brand-copy p b { padding: 0 5px; }
.welcome-copy {
    max-width: 400px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}
.eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #a4f4d2;
}
.welcome-copy h2 {
    font-family: 'Kalam', cursive;
    font-size: clamp(34px, 3.3vw, 45px);
    line-height: 1.25;
    margin-bottom: 9px;
}
.welcome-description {
    max-width: 370px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,.94);
}
.feature-list {
    position: relative;
    z-index: 1;
    list-style: none;
    display: grid;
    gap: 13px;
    margin-top: 25px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.feature-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}
.feature-icon.mint { background: #17bc88; }
.feature-icon.blue { background: #2588ff; }
.feature-icon.purple { background: #8b67f2; }
.feature-icon.orange { background: #ffa942; }
.feature-list b {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}
.feature-list small {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.8);
}
.pharmacy-art {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 65px;
    width: 75%;
    height: 180px;
    overflow: hidden;
    opacity: .85;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
}
.pharmacy-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: screen;
}
.health-slogan {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 24px;
    font-family: 'Kalam', cursive;
    font-size: 23px;
    color: #fff;
}
.health-slogan i { margin-left: 8px; font-size: 25px; }
.decor {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.decor-one {
    width: 280px; height: 280px;
    right: -130px; top: 170px;
    border: 1px solid rgba(255,255,255,.15);
}
.decor-two {
    width: 210px; height: 210px;
    left: -140px; bottom: 50px;
    background: rgba(35, 207, 144, .15);
}
.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 62px 58px 27px;
    background: linear-gradient(180deg, #fff 0%, #fff 83%, #f0f7ff 100%);
}
.mobile-brand { display: none; }
.form-content { width: 100%; max-width: 455px; margin: 0 auto; }
.form-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 38px;
}
.user-badge {
    display: grid;
    place-items: center;
    flex: 0 0 59px;
    height: 59px;
    border-radius: 50%;
    color: var(--blue);
    background: #eaf4ff;
    font-size: 25px;
}
.form-heading h2 {
    color: var(--navy);
    font-size: clamp(22px, 2.1vw, 29px);
    letter-spacing: -.8px;
    line-height: 1.3;
}
.form-heading p {
    margin-top: 7px;
    color: #70829c;
    font-size: 12px;
    line-height: 1.6;
}
.field-label {
    display: block;
    margin: 0 0 8px 2px;
    color: #415b7b;
    font-size: 12px;
    font-weight: 700;
}
.input-wrap {
    min-height: 57px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 19px;
    padding: 0 17px;
    border: 1px solid #d7e2f0;
    border-radius: 11px;
    background: #fff;
    color: #7085a0;
    transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within {
    border-color: #1683ff;
    box-shadow: 0 0 0 4px rgba(22,131,255,.1);
}
.input-wrap > i { font-size: 18px; }
.input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1c3f68;
    font: inherit;
    font-size: 14px;
}
.input-wrap input::placeholder { color: #9aa9bd; }
.show-password {
    padding: 5px;
    border: 0;
    color: #7185a0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 29px;
    font-size: 12px;
}
.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #536a87;
    cursor: pointer;
}
.remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
}
.form-options a {
    color: #0878f9;
    text-decoration: none;
    font-weight: 500;
}
.form-options a:hover { text-decoration: underline; }
.login-button {
    position: relative;
    width: 100%;
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(100deg, #1684ff, #1767df);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(17,113,235,.18);
    transition: transform .2s, box-shadow .2s;
}
.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 25px rgba(17,113,235,.24);
}
.login-button .arrow { position: absolute; right: 20px; font-size: 13px; opacity: .8; }
.or-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 26px 0 20px;
    color: #7c8da5;
    font-size: 11px;
}
.or-divider span { flex: 1; height: 1px; background: #dbe5ef; }
.admin-button {
    width: min(300px, 100%);
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    border: 1px solid #d7e8fb;
    border-radius: 28px;
    color: #0878f9;
    background: #f3f8ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s;
}
.admin-button:hover { background: #e6f2ff; }
.secure-note {
    margin-top: 20px;
    color: #95a3b6;
    text-align: center;
    font-size: 10px;
}
.secure-note i { margin-right: 5px; color: #1ab77a; }
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -18px 0 20px;
    padding: 12px 14px;
    border: 1px solid #ffd3d3;
    border-radius: 10px;
    color: #a52929;
    background: #fff0f0;
    font-size: 12px;
    line-height: 1.6;
}
.form-footer {
    padding-top: 40px;
    text-align: center;
    color: #667d99;
    font-size: 10px;
}
.footer-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 13px;
    color: #0878f9;
}
.footer-motto span { width: 22px; height: 1px; background: #0878f9; }
.footer-motto em { font-family: 'Kalam', cursive; font-size: 14px; font-style: normal; }

@media (max-width: 950px) {
    .page-background { padding: 22px; }
    .login-card { min-height: 680px; }
    .welcome-panel { padding: 34px 30px 25px; }
    .form-panel { padding: 45px 32px 24px; }
    .welcome-copy { margin-top: 37px; }
    .feature-list { gap: 11px; }
}
@media (max-width: 760px) {
    .page-background { padding: 15px; }
    .login-card { grid-template-columns: 1fr; max-width: 550px; min-height: auto; }
    .welcome-panel { min-height: 460px; padding: 30px; }
    .welcome-copy { margin-top: 32px; }
    .pharmacy-art { height: 165px; width: 72%; bottom: 58px; }
    .form-panel { padding: 35px 30px 24px; }
    .form-footer { padding-top: 38px; }
}
@media (max-width: 480px) {
    .page-background { padding: 10px; }
    .login-card { border-radius: 18px; }
    .welcome-panel { min-height: 425px; padding: 25px 22px; }
    .brand { gap: 11px; }
    .brand-mark { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; font-size: 22px; }
    .brand-copy h1 { font-size: 24px; }
    .brand-copy p { font-size: 10px; }
    .welcome-copy { margin-top: 28px; }
    .welcome-copy h2 { font-size: 35px; }
    .welcome-description { font-size: 12px; }
    .feature-list { grid-template-columns: 1fr 1fr; gap: 13px 8px; }
    .feature-list li { gap: 8px; }
    .feature-icon { width: 33px; height: 33px; flex-basis: 33px; font-size: 12px; }
    .feature-list b { font-size: 11px; }
    .feature-list small { font-size: 9px; }
    .pharmacy-art { width: 70%; height: 120px; bottom: 58px; }
    .health-slogan { font-size: 20px; }
    .form-panel { padding: 28px 21px 21px; }
    .form-heading { gap: 12px; margin-bottom: 30px; }
    .user-badge { flex-basis: 46px; height: 46px; font-size: 21px; }
    .form-heading h2 { font-size: 21px; }
    .form-heading p { font-size: 11px; }
    .input-wrap { min-height: 53px; }
    .form-options { font-size: 11px; }
    .login-button { min-height: 54px; }
}
