/*
 * TYPOGRAPHY UPDATE
 * Font sizes increased for improved readability.
 * Layout dimensions and spacing were intentionally left unchanged.
 */

/* =========================================================
   PHARMACORE ADMIN LOGIN
   Bootstrap 5 + custom PharmaCore styling
========================================================= */

:root {
    --pc-navy: #0B1F5E;
    --pc-navy-2: #14297A;
    --pc-navy-dark: #07143E;

    --pc-orange: #FF7A00;
    --pc-orange-dark: #E56600;
    --pc-orange-soft: #FFF1E4;

    --pc-bg: #F5F7FB;
    --pc-surface: #FFFFFF;

    --pc-text: #101828;
    --pc-muted: #667085;
    --pc-muted-light: #98A2B3;

    --pc-border: #E4E7EC;
    --pc-border-dark: #D0D5DD;

    --pc-success: #067647;
    --pc-success-bg: #ECFDF3;
    --pc-success-border: #ABEFC6;

    --pc-danger: #B42318;
    --pc-danger-bg: #FEF3F2;
    --pc-danger-border: #FECDCA;

    --pc-shadow:
            0 2px 4px rgba(16, 24, 40, .03),
            0 30px 80px rgba(11, 31, 94, .14);

    --pc-font: 'Inter', sans-serif;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;

    min-height: 100vh;

    font-family: var(--pc-font);

    color: var(--pc-text);

    background: var(--pc-bg);
}

button,
input {
    font-family: inherit;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background:
            radial-gradient(
                    circle at 20% 10%,
                    rgba(20, 41, 122, .07),
                    transparent 28%
            ),
            radial-gradient(
                    circle at 85% 80%,
                    rgba(255, 122, 0, .05),
                    transparent 28%
            ),
            #F5F7FB;
}


.login-shell {
    width: 100%;
    max-width: 1100px;

    min-height: 650px;

    display: grid;
    grid-template-columns:
            minmax(0, 1.05fr)
            minmax(0, .95fr);

    overflow: hidden;

    background: var(--pc-surface);

    border:
            1px solid rgba(228, 231, 236, .9);

    border-radius: 24px;

    box-shadow: var(--pc-shadow);
}


/* =========================================================
   LEFT PANEL
========================================================= */

.login-visual {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    padding: 42px;

    color: #FFFFFF;

    background:
            radial-gradient(
                    circle at 15% 5%,
                    #1B3C96 0%,
                    #102C78 23%,
                    var(--pc-navy) 57%,
                    var(--pc-navy-dark) 100%
            );
}


.visual-pattern {
    position: absolute;
    inset: 0;

    opacity: .32;

    background-image:
            linear-gradient(
                    rgba(255, 255, 255, .045) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(255, 255, 255, .045) 1px,
                    transparent 1px
            );

    background-size: 36px 36px;

    pointer-events: none;
}


.visual-glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.visual-glow-one {
    width: 340px;
    height: 340px;

    right: -170px;
    bottom: -120px;

    background:
            rgba(255, 122, 0, .18);

    filter: blur(4px);
}


.visual-glow-two {
    width: 180px;
    height: 180px;

    left: -80px;
    top: 35%;

    background:
            rgba(80, 120, 255, .12);

    filter: blur(16px);
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 12px;
}


.brand-logo {
    width: 47px;
    height: 47px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
            rgba(255, 255, 255, .09);

    border:
            1px solid rgba(255, 255, 255, .15);

    border-radius: 13px;

    backdrop-filter: blur(10px);
}


.brand-copy {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}


.brand-copy strong {
    color: #FFFFFF;

    font-size: 21.5px;
    font-weight: 800;

    letter-spacing: -.4px;
}


.brand-copy span {
    margin-top: 4px;

    color: #FFA75A;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.35px;

    text-transform: uppercase;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.visual-content {
    position: relative;
    z-index: 2;

    max-width: 450px;

    margin-top: auto;
    margin-bottom: auto;

    padding:
            36px 0;
}


.security-chip {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    padding:
            7px 12px;

    color: #D9E0F5;

    background:
            rgba(255, 255, 255, .075);

    border:
            1px solid rgba(255, 255, 255, .12);

    border-radius: 999px;

    font-size: 12.5px;
    font-weight: 500;
}


.security-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    background: #32D583;

    border-radius: 50%;

    box-shadow:
            0 0 0 4px rgba(50, 213, 131, .12);
}


.visual-content h1 {
    max-width: 430px;

    margin:
            0 0 17px;

    color: #FFFFFF;

    font-size: 38px;
    font-weight: 800;

    line-height: 1.22;

    letter-spacing: -1.15px;
}


.visual-description {
    max-width: 405px;

    margin: 0;

    color: #BBC6E7;

    font-size: 15px;

    line-height: 1.75;
}


.feature-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 28px;
}


.feature-item {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #E3E8F7;

    font-size: 13.5px;
}


.feature-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #FF9C42;

    background:
            rgba(255, 122, 0, .13);

    border:
            1px solid rgba(255, 122, 0, .23);

    border-radius: 7px;

    font-size: 13px;
}


.visual-footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #8595C3;

    font-size: 11.5px;
}


.visual-footer i {
    color: #AAB6D8;

    font-size: 13px;
}


/* =========================================================
   RIGHT PANEL
========================================================= */

.login-form-panel {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
            50px 54px;

    background: #FFFFFF;
}


.login-form-container {
    width: 100%;
    max-width: 390px;
}


/* =========================================================
   MOBILE BRAND
========================================================= */

.mobile-brand {
    display: none;

    align-items: center;

    gap: 10px;

    margin-bottom: 31px;
}


.mobile-brand-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
            var(--pc-navy);

    border-radius: 11px;
}


.mobile-brand-copy {
    display: flex;
    flex-direction: column;

    line-height: 1.12;
}


.mobile-brand-copy strong {
    color: var(--pc-navy);

    font-size: 19.5px;
    font-weight: 800;
}


.mobile-brand-copy span {
    margin-top: 3px;

    color: var(--pc-orange-dark);

    font-size: 10.5px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   HEADING
========================================================= */

.login-heading {
    margin-bottom: 27px;
}


.login-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--pc-orange-dark);

    font-size: 11.5px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.login-heading h2 {
    margin: 0;

    color: var(--pc-text);

    font-size: 31px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -.8px;
}


.login-heading p {
    margin:
            8px 0 0;

    color: var(--pc-muted);

    font-size: 14.5px;

    line-height: 1.6;
}


/* =========================================================
   ALERTS
========================================================= */

.login-alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 17px;

    padding:
            10px 12px;

    border-radius: 9px;
}


.login-alert .alert-icon {
    width: 27px;
    height: 27px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 14px;
}


.login-alert > div {
    display: flex;
    flex-direction: column;

    gap: 1px;
}


.login-alert strong {
    font-size: 12.5px;
    font-weight: 700;
}


.login-alert span {
    font-size: 12px;
}


.login-alert-danger {
    color: var(--pc-danger);

    background: var(--pc-danger-bg);

    border:
            1px solid var(--pc-danger-border);
}


.login-alert-danger .alert-icon {
    background:
            rgba(180, 35, 24, .07);
}


.login-alert-success {
    color: var(--pc-success);

    background: var(--pc-success-bg);

    border:
            1px solid var(--pc-success-border);
}


.login-alert-success .alert-icon {
    background:
            rgba(6, 118, 71, .07);
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 17px;
}


.form-group {
    display: flex;
    flex-direction: column;
}


.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.login-form .form-label {
    margin-bottom: 7px;

    color: #344054;

    font-size: 12.5px;
    font-weight: 650;
}


.input-shell {
    position: relative;
}


.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;

    transform:
            translateY(-50%);

    z-index: 2;

    color: #98A2B3;

    font-size: 16px;

    pointer-events: none;
}


.login-form .form-control {
    min-height: 46px;

    padding:
            10px 42px;

    color: var(--pc-text);

    background: #FFFFFF;

    border:
            1.5px solid var(--pc-border);

    border-radius: 10px;

    font-size: 14px;

    box-shadow: none;

    transition:
            border-color .15s ease,
            box-shadow .15s ease,
            background .15s ease;
}


.login-form .form-control::placeholder {
    color: #A4ACBA;
}


.login-form .form-control:hover {
    border-color: var(--pc-border-dark);
}


.login-form .form-control:focus {
    background: #FFFFFF;

    border-color: var(--pc-orange);

    box-shadow:
            0 0 0 4px rgba(255, 122, 0, .09);
}


.password-toggle {
    width: 32px;
    height: 32px;

    position: absolute;
    right: 7px;
    top: 50%;

    transform:
            translateY(-50%);

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #98A2B3;

    background: transparent;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    transition:
            color .15s ease,
            background .15s ease;
}


.password-toggle:hover {
    color: var(--pc-navy);

    background: #F2F4F7;
}


.password-toggle:focus-visible {
    outline:
            2px solid rgba(255, 122, 0, .3);

    outline-offset: 1px;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 2px;

    color: #FFFFFF;

    background:
            linear-gradient(
                    135deg,
                    var(--pc-orange),
                    #F06B00
            );

    border:
            1px solid var(--pc-orange);

    border-radius: 10px;

    font-size: 13.5px;
    font-weight: 700;

    box-shadow:
            0 10px 22px rgba(255, 122, 0, .18);

    transition:
            transform .15s ease,
            box-shadow .15s ease,
            background .15s ease;
}


.login-button:hover,
.login-button:focus {
    color: #FFFFFF;

    background:
            linear-gradient(
                    135deg,
                    #F57600,
                    var(--pc-orange-dark)
            );

    border-color: var(--pc-orange-dark);

    box-shadow:
            0 12px 28px rgba(255, 122, 0, .25);

    transform:
            translateY(-1px);
}


.login-button:active {
    transform:
            translateY(0);
}


.login-button i {
    font-size: 15px;
}


/* =========================================================
   SECURITY + FOOTER
========================================================= */

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 20px;

    color: var(--pc-muted-light);

    font-size: 11.5px;
}


.login-security-note i {
    color: var(--pc-success);

    font-size: 13px;
}


.login-footer {
    margin-top: 30px;

    color: #B0B7C3;

    font-size: 10.5px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .login-page {
        padding: 0;
    }


    .login-shell {
        max-width: none;
        min-height: 100vh;

        display: block;

        border: none;
        border-radius: 0;

        box-shadow: none;
    }


    .login-visual {
        display: none;
    }


    .login-form-panel {
        min-height: 100vh;

        padding:
                38px 24px;
    }


    .mobile-brand {
        display: flex;
    }
}


@media (max-width: 575.98px) {

    .login-form-panel {
        padding:
                28px 18px;
    }


    .login-form-container {
        max-width: 410px;
    }


    .mobile-brand {
        margin-bottom: 27px;
    }


    .login-heading {
        margin-bottom: 23px;
    }


    .login-heading h2 {
        font-size: 28px;
    }


    .login-heading p {
        font-size: 13.5px;
    }


    .login-form {
        gap: 15px;
    }


    .login-footer {
        margin-top: 24px;
    }
}


@media (max-width: 360px) {

    .login-form-panel {
        padding:
                24px 14px;
    }


    .mobile-brand-copy strong {
        font-size: 18px;
    }


    .login-heading h2 {
        font-size: 26px;
    }
}