﻿
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/*#pageLoader {
    width: 400px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #ffffff;*/ /* fallback color */
    /*background-image: url("../images/splash_landscape.png");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 80% auto;
}*/

#pageLoader {
    width: 100%;
    max-width: 400px;
    min-height: 100dvh;
    margin: 0 auto;
    background-color: #ffffff;
    background-image: url("../images/splash_landscape.png");
    background-repeat: no-repeat;
    background-size: 32% auto;
    background-position: center calc(100% - 40px);
}

    #pageLoader.fade-out {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

body {
    font-family: 'Segoe UI',sans-serif;
    background: #eef2f7;
}



.app-wrapper {
    width: 100%;
    max-width: 400px;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #f6f8fb;
    position: relative;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-wrapper {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f4f7fb;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.logo {
    text-align: center;
    margin: 20px 0;
}

    .logo img {
        max-width: 220px;
        height: auto;
    }

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fdecea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .icon-circle span {
        font-size: 30px;
        color: #d32f2f;
        font-weight: bold;
    }

h1 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1f2d3d;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1976d2;
}

p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.success-card {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.error-container {
    bottom: 50vh;
    position: absolute;
}

/*.welcome-container {
    position: absolute;
    bottom: 38vh;
    width: 100%;
}
*/

.welcome-container {
    position: absolute;
    bottom: 32vh;
    width: 100%;
}


/*.welcome-card {
    background: #ffffff;
    width: 100%;
    padding: 30px 0px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

    .welcome-card h1 {
        font-size: 22px;
        margin-bottom: 10px;
        color: #1f2d3d;
        font-weight: 600;
    }

    .welcome-card h2 {
        font-size: 18px;
        color: #1976d2;
        font-weight: 500;
    }
*/

.welcome-card {
    width: 100%;
    padding: 18px 22px 20px;
    box-sizing: border-box;
    text-align: center;
    background: transparent;
}

.welcome-message {
    font-size: 26px;
    font-weight: 650;
    color: #172033;
    letter-spacing: -0.5px;
    line-height: 34px;
    margin: 0;
}

.welcome-submessage {
    max-width: 340px;
    margin: 7px auto 18px;
    font-size: 14px;
    line-height: 21px;
    color: #6b7585;
    font-weight: 400;
}

    .welcome-submessage strong {
        color: #344054;
        font-weight: 600;
    }


.patient-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 24px);
    padding: 13px 18px;
    background: linear-gradient( 135deg, #ffffff 0%, #f8fbff 100% );
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

    /* Subtle highlight at the top */
    .patient-info::after {
        content: "";
        position: absolute;
        top: 0;
        left: 18px;
        right: 18px;
        height: 1px;
        background: rgba(255, 255, 255, 0.9);
    }


/* Patient details */

.patient-details {
    text-align: left;
    min-width: 0;
}

.patient-name {
    font-size: 18px;
    line-height: 23px;
    font-weight: 650;
    color: #172033;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.bed-number {
    margin-top: 4px;
    font-size: 13px;
    line-height: 19px;
    color: #697586;
    font-weight: 500;
}

    .bed-number span {
        color: #00838F;
        font-weight: 650;
    }

.loading-ring {
    width: 19px;
    height: 19px;
    border: 2px solid #D9F0F2;
    border-top-color: #00838F;
    border-radius: 50%;
    animation: patientLoader 0.8s linear infinite;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(0, 131, 143, 0.05);
}

@keyframes patientLoader {
    to {
        transform: rotate(360deg);
    }
}


.loading-ring {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: patientLoader 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes patientLoader {
    to {
        transform: rotate(360deg);
    }
}

.mobile-container {
    width: 100%;
    max-width: 400px;
    min-height: 100dvh;
    margin: 0 auto;
    background: #f2f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.logout-card {
    width: 90%;
    background: white;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


.icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e8f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 28px;
}


h2 {
    margin-top: 18px;
    color: #2c3e50;
}


p {
    color: #6b7b8c;
    font-size: 14px;
}


.qr-box {
    margin-top: 18px;
    padding: 12px;
    background: #f6f8fb;
    border-radius: 12px;
    display: inline-block;
}

    .qr-box img {
        width: 160px;
    }

.scan-text {
    margin-top: 10px;
    font-size: 13px;
    color: #6c7a89;
}


.login-btn {
    margin-top: 20px;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #4a90e2;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

/* Footer */

.footer {
    margin-top: 15px;
    font-size: 12px;
    color: #9aa5b1;
}
