/* ============================================
   BODY BACKGROUND
   ============================================ */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1255a1d6 0%, #1254a1 100%), url('../../Common-Components/asserts/Assetbg 1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* ============================================
   PRELOADING ANIMATION
   ============================================ */
.preloading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.preloading-logo {
    width: 150px;
    height: 150px;
    transition: all 0.8s;
    position: absolute;
    background-color: white;
    border-radius: 999px;
}

.preloading-logo.exit {
    transform: translateY(-100px) scale(0.8);
    /* opacity: 0; */
}

.loading-spinner {
    width: 130px;
    height: 130px;
    border: 4px solid rgb(255, 255, 255);
    border-top: 4px solid #1254a2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0px auto 0;
}

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

/* ============================================
   DASHBOARD CONTAINER
   ============================================ */
.dashboard-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: 40vh; */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top-left-radius: 20px;
    border-top-right-radius: 70px;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 1rem 1.5rem 1rem;
    box-sizing: border-box;
    text-align: left;
}
.dashboard-main-shape{
    margin: 0% 2.5% 2.5% 2.5%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    width: 95%;
    animation-duration: 0.5s;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dashboard-container.show {
    transform: translateY(0);
}

.container-content {
    max-width: 400px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-heading {
    font-size: 2.8rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    font-family: 'Stack Sans Text', sans-serif;
}

.dashboard-paragraph {
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 2rem 0;
    line-height: 1.5;
    font-family: 'Stack Sans Text', sans-serif;
}

.separator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0rem 0 1rem 0;
    width: 100%;
}

.separator-line {
    flex: 1;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
}

.separator-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    font-family: 'Vend Sans', sans-serif;
    white-space: nowrap;
}

.signin-button {
    width: 100%;
    background-color: #1254a2;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vend Sans', sans-serif;
    box-shadow: 0 2px 8px rgba(252, 48, 46, 0.3);
}

.signin-button:hover {
    background-color: #0d3d7a;
    box-shadow: 0 4px 12px rgba(252, 48, 46, 0.4);
    transform: translateY(-1px);
}

.signin-button:active {
    background-color: #0a2d5c;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE HEIGHT BASED
   ============================================ */

/* Small mobile screens (iPhone SE, etc.) - Height: ~667px */
@media (max-height: 700px) and (max-width: 450px) {
    .dashboard-container {
        /* height: 45vh; */
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .dashboard-heading {
        font-size: 2.4rem;
        margin-bottom: 0.8rem;
    }

    .dashboard-paragraph {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .separator-text {
        font-size: 0.8rem;
    }

    .signin-button {
        width: 100%;
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
        border-radius: 15px;
    }
}

/* Medium mobile screens (iPhone 12/13, etc.) - Height: ~844px */
@media (min-height: 800px) and (max-height: 870px) and (max-width: 450px) {
    .dashboard-container {
        /* height: 48vh; */
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .dashboard-heading {
        font-size: 2.5rem;
        margin-bottom: 0.75rem; 
    }

    .dashboard-paragraph {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .separator-text {
        font-size: 0.85rem;
    }

    .signin-button {
        width: 100%;
        padding: 0.7rem 1.8rem;
        font-size: 1.1rem;
        border-radius: 15px;
    }
}

/* Large mobile screens (iPhone XR/XS Max, etc.) - Height: ~896px */
@media (min-height: 870px) and (max-height: 920px) and (max-width: 450px) {
    .dashboard-container {
        /* height: 40vh; */
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .dashboard-heading {
        font-size: 2.6rem;
        margin-bottom: 0.75rem;
    }

    .dashboard-paragraph {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .separator-text {
        font-size: 0.9rem;
    }

    .signin-button {
        width: 100%;
        padding: 0.75rem 2rem;
        font-size: 1.2rem;
        border-radius: 15px;
    }
}

/* Extra large mobile screens (iPhone 14 Pro Max, etc.) - Height: ~932px */
@media (min-height: 920px) and (max-height: 950px) and (max-width: 450px) {
    .dashboard-container {
        /* height: 52vh; */
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .dashboard-heading {
        font-size: 2.7rem;
        margin-bottom: 1.2rem;
    }

    .dashboard-paragraph {
        font-size: 0.98rem;
        margin-bottom: 1rem;
    }

    .separator-text {
        font-size: 0.95rem;
    }

    .signin-button {
        width: 100%;
        padding: 0.8rem 2.2rem;
        font-size: 1.3rem;
        border-radius: 15px;
    }
}

/* Very large mobile screens - Height: 950px+ */
@media (min-height: 950px) and (max-width: 450px) {
    .dashboard-container {
        /* height: 55vh; */
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .dashboard-heading {
        font-size: 3.2rem;
        margin-bottom: 1rem;
    }

    .dashboard-paragraph {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .separator-text {
        font-size: 1rem;
    }

    .signin-button {
        width: 100%;
        padding: 0.85rem 2.5rem;
        font-size: 1.4rem;
        border-radius: 15px;
    }
}

/* Standard mobile screens (412x915, etc.) */
@media (min-height: 900px) and (max-height: 920px) and (min-width: 410px) and (max-width: 420px) {
    .dashboard-container {
        /* height: 50vh; */
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .dashboard-heading {
        font-size: 2.6rem;
        margin-bottom: 0.75rem;
    }

    .dashboard-paragraph {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .separator-text {
        font-size: 0.9rem;
    }

    .signin-button {
        width: 100%;
        padding: 0.75rem 2rem;
        font-size: 1.2rem;
        border-radius: 15px;
    }
}
