/* ==== Param Hospital - Custom Login Page ==== */
/* Modern Clinical Premium Healthcare UI
   Palette:
   Deep Navy      #12304A
   Medical Teal   #0FA3A3
   Primary Blue   #2F80ED
   Background     #F5F8FC
   White          #FFFFFF
   Main Text      #1E293B
   Secondary Text #64748B
   Border         #E2E8F0
*/
html, body { height: 100%; }
body.ph-login-body {
    margin: 0;
    padding: 0;
    background: #F5F8FC;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.ph-login-body * { box-sizing: border-box; }

/* Accessible focus states (keyboard navigation) */
.ph-login-body a:focus-visible,
.ph-login-body button:focus-visible,
.ph-login-body input:focus-visible,
.ph-login-body select:focus-visible {
    outline: 2px solid #2F80ED;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Subtle fade-in for content blocks */
@keyframes phFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.ph-fade-in {
    animation: phFadeIn .6s ease both;
}
.ph-fade-in-delay { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
    .ph-fade-in { animation: none; }
}

.ph-login-wrap {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    padding: 0;
}

/* Row holding the left info panel + right login card.
   space-between pins the left panel flush to the left edge
   (under the logo) and the card flush to the right edge -
   this is what keeps "Welcome Back" fully left, not centered. */
.ph-content-row {
    position: relative;
    z-index: 3;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ph-login-wrap .ph-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../../uploads/hospital_bg.jpg');
    background-size: cover;
    background-position: 68% center;
    filter: brightness(1.35) saturate(0.9) contrast(0.96);
    z-index: 0;
}

/* Bright, airy wash - keeps the left text zone clean and legible while the
   building stays clearly visible on the right, near the login card. */
.ph-login-wrap .ph-bg::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(100deg, rgba(245,248,252,0.96) 0%, rgba(245,248,252,0.88) 22%, rgba(245,248,252,0.55) 42%, rgba(232,246,246,0.24) 62%, rgba(15,163,163,0.10) 100%);
}

/* Top-left brand logo */
.ph-brand {
    position: absolute;
    top: 24px;
    left: 32px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ph-brand img {
    height: 52px;
    width: 52px;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(18,48,74,0.25);
    object-fit: contain;
}
.ph-brand .ph-brand-text {
    color: #12304A;
    line-height: 1.15;
}
.ph-brand .ph-brand-text b {
    font-size: 19px;
    letter-spacing: .3px;
    display: block;
    font-weight: 800;
}
.ph-brand .ph-brand-text b .ph-brand-1 { color: #12304A; }
.ph-brand .ph-brand-text b .ph-brand-2 { color: #12304A; }
.ph-brand .ph-brand-text span {
    font-size: 10.5px;
    letter-spacing: 2px;
    color: #4B6072;
    font-weight: 600;
}

.ph-lang {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 6;
}
.ph-lang .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.85);
    border: 1px solid #0FA3A3;
    color: #12304A;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(18,48,74,0.1);
    backdrop-filter: blur(2px);
}
.ph-lang .dropdown-toggle i { margin-right: 7px; color: #0FA3A3; }
.ph-lang .dropdown-toggle .caret { margin-left: 8px; }
.ph-lang .dropdown-menu { right: 0; left: auto; top: 42px; }

/* Left informational panel */
.ph-left {
    position: relative;
    z-index: 3;
    width: 55%;
    max-width: 640px;
    flex: 1 1 480px;
    padding: 110px 40px 40px 40px;
    color: #12304A;
    box-sizing: border-box;
}
.ph-left .ph-welcome { font-size: 20px; margin-bottom: 6px; color: #0FA3A3; font-weight: 600; }
.ph-left h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 18px 0;
    font-weight: 800;
    color: #12304A;
    text-shadow: 0 2px 18px rgba(255,255,255,0.5);
}
.ph-left h1 .accent { background: linear-gradient(90deg,#0FA3A3,#2F80ED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-left p.ph-desc {
    max-width: 480px;
    color: #33475A;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 14px;
}
.ph-left p.ph-desc::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg,#2F80ED,#0FA3A3);
}

.ph-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
    max-width: 480px;
    margin-bottom: 22px;
}
.ph-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 10px 26px rgba(18,48,74,0.08);
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ph-feature:hover {
    transform: translateY(-3px);
    background: #FFFFFF;
    box-shadow: 0 16px 32px rgba(18,48,74,0.14);
}
.ph-feature .ph-feature-icon {
    flex: 0 0 42px;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
/* All feature cards share one consistent teal/blue medical icon treatment
   (legacy purple/orange classes are remapped, not removed, to avoid touching markup) */
.ph-feature.ph-feature-blue .ph-feature-icon,
.ph-feature.ph-feature-purple .ph-feature-icon { background: rgba(47,128,237,0.14); color: #2F80ED; }
.ph-feature.ph-feature-teal .ph-feature-icon,
.ph-feature.ph-feature-orange .ph-feature-icon { background: rgba(15,163,163,0.14); color: #0FA3A3; }

.ph-feature .ph-feature-text b { display: block; font-size: 14px; color: #12304A; font-weight: 700; }
.ph-feature .ph-feature-text span { font-size: 12px; color: #64748B; line-height: 1.4; }

.ph-quote {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
    background: #12304A;
    padding: 16px 20px;
    max-width: 480px;
    color: #EAF2F6;
    font-size: 14px;
    line-height: 1.5;
    font-style: normal;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(18,48,74,0.28);
}
.ph-quote .ph-quote-mark {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15,163,163,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6FE3D6;
    font-size: 15px;
}
.ph-quote .accent { color: #6FE3D6; font-weight: 700; font-style: normal; }
.ph-heartbeat {
    position: absolute;
    right: -6px;
    bottom: 10px;
    width: 130px;
    height: 16px;
    opacity: 0.55;
}
.ph-heartbeat polyline {
    fill: none;
    stroke: #6FE3D6;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Right login card */
.ph-right {
    position: relative;
    z-index: 4;
    width: 420px;
    margin: 130px 60px 40px 0;
    flex: 0 0 auto;
}
.ph-card {
    background: #FFFFFF;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(18,48,74,0.22);
    padding: 34px 32px 28px 32px;
    box-sizing: border-box;
    transition: box-shadow .25s ease;
}
.ph-card:hover {
    box-shadow: 0 34px 78px rgba(18,48,74,0.28);
}
.ph-card-icon {
    width: 78px;
    height: 78px;
    margin: -66px auto 14px auto;
    border-radius: 50%;
    background: #F5F8FC;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(18,48,74,0.2), 0 0 0 6px rgba(255,255,255,0.95);
}
.ph-card-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.ph-card h2 {
    text-align: center;
    margin: 0 0 4px 0;
    font-size: 21px;
    color: #12304A;
    font-weight: 700;
}
.ph-card p.ph-sub {
    text-align: center;
    color: #64748B;
    font-size: 13px;
    margin: 0 0 22px 0;
}

.ph-field {
    position: relative;
    margin-bottom: 14px;
}
.ph-field .ph-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0FA3A3;
    font-size: 14px;
    z-index: 2;
}
.ph-field select,
.ph-field input[type="text"],
.ph-field input[type="email"],
.ph-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 40px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #F5F8FC;
    font-size: 14px;
    color: #1E293B;
    height: 46px;
}
.ph-field select:focus,
.ph-field input:focus {
    outline: none;
    border-color: #2F80ED;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47,128,237,0.12);
}
.ph-field .ph-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    cursor: pointer;
    font-size: 13px;
    background: none;
    border: none;
    z-index: 2;
}
.ph-field .ph-toggle-pass:hover { color: #2F80ED; }

.ph-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 18px;
    color: #64748B;
}
.ph-row-between a { color: #2F80ED; text-decoration: none; font-weight: 600; }
.ph-row-between a:hover { color: #0FA3A3; }
.ph-row-between label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.ph-btn-login {
    width: 100%;
    border: none;
    height: 54px;
    padding: 0 13px;
    border-radius: 12px;
    background: linear-gradient(90deg,#2F80ED,#0FA3A3);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .3px;
    box-shadow: 0 10px 24px rgba(47,128,237,0.28);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ph-btn-login:hover {
    opacity: .96;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15,163,163,0.32);
}
.ph-btn-login:active { transform: translateY(0); }

/* OR divider + contact administrator */
.ph-or-divider {
    position: relative;
    text-align: center;
    margin: 20px 0 16px 0;
    height: 1px;
    background: #E2E8F0;
}
.ph-or-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    color: #64748B;
    font-size: 11.5px;
    font-weight: 600;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px #E2E8F0;
}
.ph-signup-row {
    text-align: center;
    font-size: 13px;
    color: #64748B;
}
.ph-signup-row a { color: #0FA3A3; font-weight: 700; text-decoration: none; margin-left: 4px; }
.ph-signup-row a:hover { color: #2F80ED; }

/* Bottom strip - floating white rounded bar, off the edges, like the reference.
   Kept in normal document flow (not position:absolute) so it can never be
   clipped or hidden below the fold - the page grows/scrolls to show it fully. */
.ph-bottom-strip {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 18px 18px 18px;
    padding: 14px 24px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(18,48,74,0.14);
}
.ph-bottom-left {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.ph-bottom-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ph-bottom-item i {
    color: #0FA3A3;
    font-size: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(15,163,163,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.ph-bottom-item .ph-bottom-text { line-height: 1.3; }
.ph-bottom-item .ph-bottom-text b { display: block; font-size: 13px; color: #12304A; }
.ph-bottom-item .ph-bottom-text span { display: block; font-size: 11px; color: #64748B; }

.ph-bottom-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ph-bottom-right .ph-copyright { text-align: right; line-height: 1.35; color: #64748B; font-size: 12px; }
.ph-bottom-right .ph-copyright b { display: block; color: #12304A; font-size: 12.5px; }
.ph-bottom-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(15,163,163,0.14);
    border: 1px solid rgba(15,163,163,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0FA3A3;
    font-size: 16px;
    flex: 0 0 auto;
}

/* Tablet (~768px): compact hero stays visible, feature grid stays 2x2, card narrows */
@media (max-width: 992px) {
    .ph-content-row { justify-content: center; flex-wrap: wrap; }
    .ph-left { display: none; }
    .ph-right { margin: 90px 16px 40px 16px; width: 100%; max-width: 420px; }
    .ph-bottom-strip { flex-direction: column; align-items: flex-start; padding: 14px 20px; margin: 0 12px 12px 12px; }
    .ph-bottom-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 768px) {
    .ph-brand { top: 18px; left: 18px; }
    .ph-lang { top: 18px; right: 18px; }
    .ph-right { margin: 84px 16px 40px 16px; }
    .ph-bottom-left { gap: 18px; }
}

/* Mobile (390px / 375px): full-width card, single column feature list not shown (hero hidden),
   large tap targets, footer wraps cleanly */
@media (max-width: 480px) {
    .ph-brand { top: 16px; left: 16px; gap: 8px; }
    .ph-brand img { height: 42px; width: 42px; }
    .ph-brand .ph-brand-text b { font-size: 15px; }
    .ph-brand .ph-brand-text span { font-size: 9px; letter-spacing: 1.5px; }
    .ph-lang { top: 16px; right: 16px; }
    .ph-lang .dropdown-toggle { padding: 7px 12px; font-size: 12px; }
    .ph-right { margin: 76px 12px 30px 12px; width: calc(100% - 24px); }
    .ph-card { padding: 28px 18px 22px 18px; border-radius: 20px; }
    .ph-card h2 { font-size: 19px; }
    .ph-field select,
    .ph-field input[type="text"],
    .ph-field input[type="email"],
    .ph-field input[type="password"] { height: 50px; font-size: 15px; }
    .ph-btn-login { height: 52px; font-size: 15px; }
    .ph-row-between { font-size: 12px; }
    .ph-bottom-strip { padding: 12px 16px; }
    .ph-bottom-left { gap: 16px; row-gap: 10px; }
    .ph-bottom-item .ph-bottom-text span { display: none; }
    .ph-bottom-item .ph-bottom-text b { font-size: 12px; }
    .ph-bottom-right { flex-direction: column; align-items: flex-end; gap: 6px; }
    .ph-bottom-right .ph-copyright { font-size: 10.5px; }
}

@media (max-width: 375px) {
    .ph-brand .ph-brand-text span { display: none; }
    .ph-right { margin: 70px 10px 24px 10px; }
    .ph-card { padding: 24px 16px 20px 16px; }
}
