/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

body {
    /* Outer background for desktop view to match the rest of the app */
    background-color: #e0e0e0; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- Splash Container (App Frame) --- */
.splash-container {
    background-color: #1C4481; /* Primary Blue Background inside the frame */
    width: 100%;
    max-width: 480px;
    height: 100vh;
    max-height: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 40px 20px 30px 20px;
}

/* --- Center Content (Logo & Title) --- */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1; /* Pushes loader to bottom, keeps this centered */
}

.splash-logo {
    /* Responsive width */
    width: 45vw; 
    max-width: 180px;
    min-width: 120px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.2)); 
}

.splash-title {
    color: #ffffff;
    /* Auto-scales text between 1.2rem and 1.8rem based on screen size */
    font-size: clamp(1.2rem, 2vw, 1rem); 
    font-weight: 300;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* --- Bottom Loader Section --- */
.splash-loader-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px; 
}

/* Pure CSS Spinning Circle */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.15); 
    border-top: 4px solid #ffffff; 
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* --- Responsive Layout (Tablet/Desktop Tweaks) --- */
@media screen and (min-width: 481px) {
    .splash-container {
        height: 90vh;
        border-radius: 20px;
        margin: 20px;
    }
}