.patient-portal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    background: radial-gradient(circle at 12% 18%, #edf9f7 0%, #d8f1ef 38%, #f4fbfa 100%);
    font-family: "Source Sans Pro", Arial, sans-serif;
}

.portal-wrapper {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-wrap: wrap;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 84, 78, 0.18);
    background: #ffffff;
}

.portal-brand {
    flex: 1 1 42%;
    min-width: 260px;
    background: linear-gradient(145deg, #0f857f, #11b4a6);
    color: #ffffff;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.brand-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(230deg, rgba(255, 255, 255, 0.08), rgba(7, 95, 90, 0.1));
    z-index: 1;
}

.brand-gradient {
    position: absolute;
    inset: -32% -42% 36% 24%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    opacity: 0.8;
}

.brand-spot {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.brand-spot-one {
    top: -48px;
    right: -48px;
}

.brand-spot-two {
    bottom: -64px;
    left: -36px;
    background: rgba(255, 255, 255, 0.18);
}

.brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 320px;
}

.portal-brand .brand-logo {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(5, 61, 56, 0.24);
}

.portal-brand .brand-logo img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    border-radius: 22px;
    background: #ffffff;
    padding: 8px;
}

.portal-brand .brand-copy h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 4px;
    letter-spacing: 0.3px;
}

.portal-brand .brand-copy .tagline {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
}

.brand-highlight {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 6px 0 4px;
}

.brand-highlight i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.portal-brand .brand-details {
    font-size: 13px;
    line-height: 1.5;
}

.portal-brand .brand-details p {
    margin-bottom: 4px;
}

.portal-brand .brand-details i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.72);
}

.portal-brand .brand-details a {
    color: inherit;
    text-decoration: none;
}

.portal-brand .brand-details a:hover {
    text-decoration: underline;
}

 .portal-form {
     flex: 1 1 58%;
     min-width: 260px;
     padding: 18px 22px;
     background: #ffffff;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .portal-form .form-header h2 {
     font-size: 18px;
     font-weight: 700;
     color: #0f857f;
     margin-bottom: 2px;
 }

 .portal-form .form-header p {
     margin-bottom: 8px;
     font-size: 12px;
     color: #5a7a76;
 }

 .portal-card {
     background: #ffffff;
     border-radius: 14px;
     border: 1px solid rgba(10, 118, 112, 0.12);
     padding: 18px 16px;
     position: relative;
     overflow: hidden;
     min-height: 360px;
 }

 .portal-card::before {
     content: "";
     position: absolute;
     inset: 0;
     border-radius: inherit;
     background: linear-gradient(135deg, rgba(12, 141, 132, 0.08), rgba(12, 141, 132, 0));
     pointer-events: none;
 }

 .portal-card::after {
     content: "";
     position: absolute;
     inset: auto -26px -36px 52%;
     width: 110px;
     height: 110px;
     background: radial-gradient(circle at center, rgba(11, 142, 135, 0.16), rgba(11, 142, 135, 0));
     transform: translateX(-50%);
     pointer-events: none;
 }

 .portal-form .form-group label {
     font-size: 12px;
     font-weight: 600;
     color: #276760;
     margin-bottom: 2px;
 }

 .portal-form .form-control {
     border: 1px solid rgba(28, 124, 117, 0.26);
     border-radius: 10px;
     height: 38px;
     background-color: #f1fbf9;
     font-size: 13px;
     padding-left: 34px;
    padding-right: 42px;
     transition: border-color 0.18s ease, box-shadow 0.18s ease;
 }

 .portal-form .form-control:focus {
     border-color: #0f857f;
     box-shadow: 0 0 0 2px rgba(15, 133, 127, 0.18);
 }

.portal-form .text-danger,
.portal-form .field-validation-error,
.portal-form .validation-summary-errors {
    color: #c62828 !important;
}

.input-shell {
     position: relative;
     display: flex;
     align-items: center;
    width: 100%;
 }

.input-shell i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #099b91;
    font-size: 14px;
    pointer-events: none;
}

.input-shell i.fa-file-invoice,
.input-shell i.fa-mobile-alt {
    left: 12px;
}

.input-shell .reveal-toggle {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #4f6764;
    transition: color 0.2s ease;
    font-size: 15px;
    pointer-events: auto;
}

.input-shell .reveal-toggle:hover {
    color: #0f857f;
}

.input-shell .reveal-toggle.fa-eye-slash {
    color: #0f857f;
}

 .btn-login {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 6px;
     width: auto;
     padding: 8px 18px;
     border-radius: 10px;
     border: none;
     background: linear-gradient(135deg, #0f857f, #099b91);
     color: #ffffff;
     font-size: 13px;
     font-weight: 600;
     letter-spacing: 0.2px;
     transition: transform 0.15s ease, box-shadow 0.15s ease;
     margin-top: 10px;
 }

 .btn-login:hover {
     transform: translateY(-1px);
     box-shadow: 0 12px 20px rgba(9, 155, 145, 0.24);
 }

 .btn-login:active {
     transform: translateY(0);
     box-shadow: 0 8px 16px rgba(9, 155, 145, 0.18);
 }

.portal-form .alert {
    border-radius: 9px;
    border: none;
    background-color: rgba(222, 97, 97, 0.12);
    color: #b43434;
    padding: 6px 10px;
}

.portal-form .login-help {
    margin-top: 8px;
    font-size: 10px;
    color: #5d7774;
    text-align: center;
}

.support-info {
    margin-top: 12px;
    font-size: 11px;
    color: #5d7774;
    text-align: center;
}

.support-info p {
    margin-bottom: 0;
}

.portal-theme .btn-primary {
    border: none;
}

.portal-theme a {
    color: inherit;
}

@media (max-width: 992px) {
    .portal-wrapper {
        flex-direction: column;
    }

    .portal-brand,
    .portal-form {
        flex: 1 1 auto;
        padding: 20px 18px;
    }

    .brand-spot-one,
    .brand-spot-two {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 576px) {
    .patient-portal {
        padding: 14px 10px;
    }

    .portal-brand,
    .portal-form {
        padding: 16px 14px;
    }

    .portal-form .form-header h2 {
        font-size: 20px;
    }

    .portal-brand .brand-copy h1 {
        font-size: 22px;
    }

    .portal-card {
        padding: 18px 14px;
    }
}

/* Reports */
.patient-report-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 40px 16px 56px;
    background: radial-gradient(circle at 18% 18%, #e6f7f5 0%, #d1efec 32%, #f2fbfa 100%);
    overflow: hidden;
}

.patient-report-wrapper::before,
.patient-report-wrapper::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(15, 133, 127, 0.16), rgba(88, 216, 204, 0.08));
    z-index: 0;
}

.patient-report-wrapper::before {
    top: -200px;
    right: -120px;
}

.patient-report-wrapper::after {
    bottom: -200px;
    left: -150px;
}

.patient-report-card {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(12, 84, 79, 0.18);
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(15, 133, 127, 0.14);
}

.patient-report-header {
    padding: 26px 30px;
    background: linear-gradient(135deg, #0f857f, #12b4a7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.patient-report-header::after {
    content: "";
    position: absolute;
    inset: 10px 16px auto auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    opacity: 0.45;
    pointer-events: none;
}

.patient-report-header .brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.patient-report-header img {
    height: 82px;
    width: 82px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(3, 72, 67, 0.18);
}

.patient-report-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.patient-report-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.84);
}

.header-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(5px);
}

.chip i {
    font-size: 13px;
}

.chip--light {
    background: rgba(255, 255, 255, 0.24);
}

.chip--info {
    background: rgba(7, 96, 90, 0.18);
}

.patient-report-content {
    padding: 26px 30px 34px;
}

.patient-report-content .patient-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1d514d;
}

.patient-report-content .patient-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(207, 241, 236, 0.9), rgba(194, 234, 228, 0.7));
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.patient-report-content .patient-meta strong {
    font-weight: 700;
    color: #0f5c58;
}

.report-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.glance-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 133, 127, 0.08), rgba(47, 189, 178, 0.08));
    border: 1px solid rgba(15, 133, 127, 0.14);
    box-shadow: 0 10px 20px rgba(12, 102, 97, 0.08);
    color: #0f5c58;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.glance-card i {
    font-size: 18px;
    color: inherit;
}

.glance-card .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(14, 85, 80, 0.7);
}

.glance-card strong {
    font-size: 18px;
    color: #0c4a46;
}

.glance-card.success {
    background: linear-gradient(135deg, rgba(10, 168, 142, 0.12), rgba(35, 193, 170, 0.14));
    border-color: rgba(10, 168, 142, 0.2);
    color: #0a6d5f;
}

.glance-card.warning {
    background: linear-gradient(135deg, rgba(245, 194, 67, 0.16), rgba(255, 226, 155, 0.12));
    border-color: rgba(241, 190, 60, 0.18);
    color: #b56a08;
}

.glance-card.accent {
    background: linear-gradient(135deg, rgba(116, 220, 205, 0.2), rgba(159, 241, 230, 0.16));
    border-color: rgba(118, 224, 210, 0.22);
    color: #0d726b;
}

.glance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(14, 95, 90, 0.16);
}

.report-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 194, 67, 0.16);
    border: 1px solid rgba(245, 194, 67, 0.32);
    color: #a66a00;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.report-alert i {
    font-size: 16px;
}

.patient-report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(11, 89, 84, 0.08);
}

.patient-report-table thead {
    background: linear-gradient(135deg, rgba(15, 133, 127, 0.14), rgba(38, 189, 178, 0.12));
}

.patient-report-table th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #11514d;
    padding: 12px 11px;
    border-bottom: 1px solid rgba(10, 118, 112, 0.16);
}

.patient-report-table td {
    padding: 12px 11px;
    font-size: 13px;
    color: #1a5752;
    border-bottom: 1px solid rgba(11, 105, 99, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.patient-report-table tbody tr:last-child td {
    border-bottom: none;
}

.patient-report-table tbody tr:hover td {
    background: rgba(211, 241, 236, 0.45);
}

.patient-report-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0f857f;
    cursor: pointer;
}

.report-group-row td {
    padding: 0;
    background: rgba(13, 131, 124, 0.07);
    border: none;
}

.report-group-shell {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 131, 124, 0.12), rgba(38, 189, 178, 0.08));
}

.group-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #14655f;
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.status-pill i {
    font-size: 12px;
}

.status-pill--success,
.status-pill--pending,
.status-pill--verified,
.status-pill--review,
.status-pill--warning,
.status-pill--muted {
    background: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.btn-group.split-group {
    display: inline-flex;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(15, 133, 127, 0.2);
    box-shadow: 0 10px 20px rgba(15, 105, 99, 0.14);
}

.btn-group.split-group .btn {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    color: #ffffff;
    transition: background 0.16s ease, transform 0.16s ease;
}

.btn-group.split-group .btn i {
    font-size: 12px;
}

.btn-view {
    background: linear-gradient(135deg, #0f857f, #0aa393);
}

.btn-view:hover {
    background: linear-gradient(135deg, #0d776f, #088a7d);
}

.btn-download {
    background: linear-gradient(135deg, #0aba9b, #08a382);
}

.btn-download:hover {
    background: linear-gradient(135deg, #089a84, #06836b);
}

.patient-report-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.patient-report-actions .btn {
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #0f857f, #0aa393);
    border: none;
    box-shadow: 0 14px 24px rgba(14, 115, 108, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.patient-report-actions .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(15, 133, 127, 0.6), rgba(10, 163, 147, 0.6));
}

.patient-report-actions .btn:not([disabled]):hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(14, 115, 108, 0.3);
}

.download-hint {
    font-size: 12px;
    color: #4c6764;
}

.portal-card.compact {
    width: min-content;
    align-self: center;
}
button.btn.btn-primary.btn-login.compact-btn.mt-2 {
    float: right;
}
@media (max-width: 992px) {
    .patient-report-header {
        padding: 28px 26px;
    }

    .patient-report-content {
        padding: 26px 24px 32px;
    }
}

@media (max-width: 768px) {
    .patient-report-header {
        padding: 26px 22px;
    }

    .patient-report-header .brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .patient-report-content {
        padding: 22px 18px 28px;
    }

    .report-group-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .patient-report-table {
        display: block;
        overflow-x: auto;
    }

    .btn-group.split-group {
        width: 100%;
    }

    .btn-group.split-group .btn {
        justify-content: center;
        flex: 1;
    }

    .patient-report-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .patient-report-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .download-hint {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .patient-report-wrapper {
        padding: 32px 12px 48px;
    }

    .header-chips {
        flex-direction: column;
        align-items: flex-start;
    }

    .glance-card {
        padding: 14px;
    }
}

.text-soft {
    color: #7287a3;
    font-size: 13px;
}

