/* Critical styles needed for initial rendering */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.logo-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1.5s cubic-bezier(0.4, 0, 0.52, 0.96) infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-container {
    width: 250px;
    height: 8px;
    background-color: #f3f3f3;
    border-radius: 4px;
    margin: 10px auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Signup page specific styles */
.auth-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Enhanced loading styles */
.auth-loading-container {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-loading-message {
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

.auth-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.auth-progress-bar-inner {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}