/**
 * P3 Enterprise Digital Platform
 * Premium Authentication Interface
 * Version 1.6.1
 */

:root {
    --p3-navy: #082d62;
    --p3-navy-dark: #051f48;
    --p3-green: #07995a;
    --p3-green-dark: #067347;
    --p3-page: #f3f6fa;
    --p3-card: #ffffff;
    --p3-border: #dbe3ed;
    --p3-text: #10254a;
    --p3-muted: #6b7b94;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.p3-login-body {
    margin: 0;
    background: var(--p3-page);
    color: var(--p3-text);
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.p3-login-shell { display:grid; grid-template-columns:minmax(360px, 480px) minmax(480px, 620px); width:min(1100px,calc(100% - 40px)); min-height:min(720px,calc(100vh - 40px)); margin:20px auto; align-content:stretch; justify-content:center; }

.p3-login-brand-panel {
    position: relative;
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    padding: 44px 38px;
    background: var(--p3-navy);
    color: #fff;
}

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

.p3-login-brand-panel::after {
    position: absolute;
    right: clamp(25px, 7vw, 95px);
    bottom: 12px;
    z-index: 0;
    color: rgba(255, 255, 255, .045);
    content: "P3";
    font-size: clamp(180px, 17vw, 285px);
    font-weight: 900;
    letter-spacing: -.09em;
    line-height: .82;
    pointer-events: none;
    user-select: none;
}

.p3-brand-topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-top: 22px;
}

.p3-login-logo-link {
    display: grid;
    width: min(330px, 92%);
    min-height: 92px;
    place-items: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}

.p3-login-logo {
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.p3-platform-label {
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.p3-brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    flex-direction: column;
    justify-content:center;
    margin: -28px 0 0;
    padding: 0 0 12px;
}

.p3-brand-kicker {
    display: block;
    margin-bottom: 20px;
    color: #4ee092;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.p3-brand-content h1 {
    max-width: 570px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(2.45rem, 4vw, 3.65rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.08;
    text-align:center;
}

.p3-brand-content > p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align:center;
}

.p3-partner-area {
    display: block;
    max-width: 640px;
    margin-top: auto;
    padding-top: 44px;
}

.p3-funder-block,
.p3-support-block {
    width: 100%;
    min-width: 0;
    background: transparent;
}

.p3-partner-heading {
    display: block;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(12px, 1.05vw, 17px);
    font-weight: 750;
    letter-spacing: .01em;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    background: transparent;
}

.p3-funder-card {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.p3-funder-card img {
    display: block;
    width: auto;
    max-width: 92px;
    height: 50px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.p3-support-logo-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.p3-support-logo-list > span {
    display: grid;
    min-width: 0;
    min-height: 48px;
    place-items: center;
    padding: 3px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.p3-support-logo-list img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 54px;
    object-fit: contain;
}


.p3-support-block {
    margin-top: 28px;
}

.p3-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, .55);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.p3-brand-footer i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #20c878;
}

.p3-login-form-panel {
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 32px;
    background: #f0f4f8;
}

.p3-login-form-shell {
    width: min(100%, 560px);
    padding: 30px 40px;
    border: 1px solid rgba(219, 227, 237, .95);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 45, 82, .09);
}

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

.p3-login-heading {
    margin-bottom: 24px;
    text-align:center;
}

.p3-login-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin:0 auto 14px;
    border-radius: 12px;
    background: #eef3f8;
    color: var(--p3-navy);
    font-size: 19px;
}

.p3-login-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--p3-green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.p3-login-heading h2 {
    margin: 0 0 9px;
    color: var(--p3-text);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.p3-login-heading p {
    margin: 0;
    color: var(--p3-muted);
    font-size: 15px;
    line-height: 1.6;
}

.p3-login-message,
#loginAlert .alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    border: 0;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
}

.p3-login-form {
    display: grid;
    gap: 13px;
}

.p3-login-field {
    display: grid;
    gap: 7px;
}

.p3-login-field label,
.p3-login-label-row label {
    margin: 0;
    color: #263b5d;
    font-size: 13px;
    font-weight: 600;
}

.p3-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.p3-login-label-row a {
    color: #0a4f93;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.p3-login-input-group {
    display: grid;
    min-height: 44px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--p3-border);
    border-radius: 11px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.p3-login-input-group:focus-within {
    border-color: var(--p3-green);
    box-shadow: 0 0 0 4px rgba(7, 153, 90, .10);
}

.p3-login-input-group > span {
    display: grid;
    height: 100%;
    place-items: center;
    border-right: 1px solid #edf1f5;
    color: #5d708c;
}

.p3-login-input-group input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--p3-text);
    font-size: 15px;
}

.p3-login-input-group input::placeholder {
    color: #97a3b4;
}

.p3-password-toggle {
    display: grid;
    width: 44px;
    height: 46px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #76859a;
}

.p3-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.p3-remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #63738b;
    font-size: 13px;
}

.p3-remember-option input {
    width: 15px;
    height: 15px;
    accent-color: var(--p3-green);
}

.p3-secure-label {
    color: var(--p3-green-dark);
    font-size: 13px;
    font-weight: 700;
}

.p3-login-submit {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    background: var(--p3-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 13px 25px rgba(7, 153, 90, .18);
    transition: transform .16s ease, background-color .16s ease;
}

.p3-login-submit:hover {
    background: var(--p3-green-dark);
    transform: translateY(-1px);
}

.p3-login-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.p3-first-access-note {
    display: flex;
    gap: 11px;
    margin-top: 13px;
    padding: 11px;
    border: 1px solid #dcece4;
    border-radius: 11px;
    background: #f5fbf8;
}

.p3-first-access-note > i {
    color: var(--p3-green);
    font-size: 18px;
}

.p3-first-access-note strong,
.p3-first-access-note span {
    display: block;
}

.p3-first-access-note strong {
    color: #204832;
    font-size: 11px;
}

.p3-first-access-note span {
    margin-top: 3px;
    color: #667b70;
    font-size: 9px;
    line-height: 1.5;
}

.p3-register-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 11px;
    padding: 12px 14px;
    border: 1px solid var(--p3-border);
    border-radius: 11px;
    background: #fbfcfe;
}

.p3-register-panel strong,
.p3-register-panel span {
    display: block;
}

.p3-register-panel strong {
    color: var(--p3-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.p3-register-panel span {
    margin-top: 3px;
    color: #7b889c;
    font-size: 13px;
    line-height: 1.45;
}

.p3-register-panel a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--p3-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.p3-register-panel > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
}

.p3-register-panel > div span {
    margin-top: 0;
}

.p3-forgot-link {
    text-decoration: none;
}

.p3-forgot-link:hover,
.p3-forgot-link:focus-visible {
    text-decoration: underline;
}

.p3-login-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: #7a8799;
    font-size: 13px;
}

.p3-login-support a {
    color: var(--p3-navy);
    font-weight: 600;
    text-decoration: none;
}

.p3-login-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e8edf3;
    text-align: center;
}

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

.p3-login-footer strong {
    color: #3b4d69;
    font-size: 9px;
}

.p3-login-footer span {
    display: block;
    margin-top: 5px;
    color: #8a96a8;
}

.p3-login-footer .p3-developer-credit {
    display: block;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.p3-login-footer .p3-developer-credit a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.p3-login-footer .p3-developer-credit a:hover,
.p3-login-footer .p3-developer-credit a:focus-visible {
    color: var(--p3-green-dark);
    text-decoration: underline;
}

.p3-login-footer .p3-copyright {
    margin-top: 8px;
    color: #68758a;
    font-size: 12px;
    font-weight: 500;
}


@media (max-width: 1199.98px) {
    .p3-login-shell {
        grid-template-columns: minmax(340px, 44%) minmax(440px, 56%);
    }

    .p3-login-brand-panel {
        padding-right: 28px;
        padding-left: 28px;
    }

    .p3-login-logo-link {
        width: min(290px, 88%);
        min-height: 88px;
    }

    .p3-login-logo {
        max-height: 68px;
    }

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

    .p3-login-form-shell {
        width: min(100%, 650px);
        padding: 28px 34px;
    }
}

@media (min-width: 992px) and (max-height: 820px) {
    .p3-login-brand-panel {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .p3-login-logo-link {
        width: 260px;
        min-height: 74px;
    }

    .p3-login-logo {
        max-height: 58px;
    }

    .p3-brand-content {
        margin-top: 0;
        padding: 0 0 10px;
    }

    .p3-brand-content h1 {
        font-size: clamp(2.4rem, 3.6vw, 3.3rem);
    }

    .p3-partner-area {
        margin-top: 20px;
        padding-top: 0;
    }

    .p3-support-block {
        margin-top: 16px;
    }

    .p3-support-logo-list img {
        height: 42px;
    }

    .p3-login-form-shell {
        padding: 22px 34px;
    }

    .p3-login-heading {
        margin-bottom: 12px;
    }

    .p3-first-access-note,
    .p3-register-panel,
    .p3-login-support,
    .p3-login-footer {
        margin-top: 9px;
    }
}


@media (max-width: 991.98px) {
    .p3-login-shell {
        grid-template-columns: 1fr;
        width:min(640px,calc(100% - 28px));
        min-height:calc(100vh - 28px);
        margin:14px auto;
    }

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

    .p3-login-form-panel {
        min-height: 100vh;
        padding: 24px;
    }

    .p3-mobile-brand {
        display: grid;
        place-items: center;
        margin-bottom: 25px;
    }

    .p3-mobile-brand img {
        width: 210px;
        max-height: 65px;
        object-fit: contain;
    }
}

@media (max-width: 575.98px) {
    .p3-login-form-panel {
        padding: 13px;
    }

    .p3-login-form-shell {
        padding: 25px 20px;
        border-radius: 15px;
    }

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

    .p3-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .p3-register-panel {
        gap: 10px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .p3-register-panel strong,
    .p3-register-panel a {
        font-size: 13px;
    }
}
