/* width */
::-webkit-scrollbar {
  /*width: 10px; /* Changed from 0px to 10px for visibility */
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #333; /* Changed from red to a more standard color */
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* Changed from #b30000 to a more standard color */
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    height: auto;
    background-color: #0f1722;
}

/* Main wrapper for sticky footer */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Content area that grows to fill available space */
.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Removed padding to eliminate white space */
    position: relative;
    z-index: 10;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Mobile-specific footer - only visible on mobile */
.mobile-footer {
    display: none;
    background-color: rgb(15, 23, 34);
    border-top: 0.125rem solid rgb(33, 39, 54);
    padding: 3rem 1rem;
    position: relative;
    color: #fff;
    text-align: center;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Mobile footer image */
.mobile-footer-image {
    max-width: 50%;
    margin-bottom: 2rem;
}

/* Mobile footer links container */
.mobile-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Mobile footer link group */
.mobile-footer-link-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.3rem;
    width: 100%;
}

/* Mobile footer link */
.mobile-footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.mobile-footer-links a:hover {
    color: #39acff;
}

/* Mobile footer copyright */
.mobile-footer-copyright {
    font-size: 0.99rem;
    color: #aaa;
    margin-top: 1rem;
}

/* Loading state for submit button */
.cont_btn {
    position: relative;
    overflow: hidden;
}

.cont_btn.loading {
    color: transparent !important;
    pointer-events: none;
}

.cont_btn.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for mobile footer */
@media (max-width: 570px) {
    .mobile-footer {
        display: block;
    }
}

.img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.img img {
    max-width: 70%;
    max-height: 55%;
    border-radius: 1%;
    cursor: none;
}

/* Enhanced preloader styles from first code */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-image: url('https://i.ibb.co/RGcNZ0LZ/bg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile preloader - different from desktop */
.preloader.mobile {
    background-color: rgb(15, 23, 34);
    background-image: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

/* New preloader container */
.preloader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    border-radius: 15px;
    
    padding: 20px;
}

/* Mobile preloader container - simpler */
.preloader.mobile .preloader-container {
    padding: 0;
}

/* Black container for progress with icons inside */
.progress-container {
    width: 480px;
    height: 160px; /* Increased height to accommodate both icons and progress */
    background-color:  rgb(15, 23, 34);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 15px 20px;
   
}

/* Mobile progress container - just the spinner */
.preloader.mobile .progress-container {
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
}

/* Logo container at the top */
.preloader-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 15px; /* Space between logo and progress */
}

/* Hide logo on mobile */
.preloader.mobile .preloader-icons {
    display: none;
}

.preloader-icon {
    width: 165px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* Circular progress container below icons */
.circular-progress {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Make mobile spinner larger and centered */
.preloader.mobile .circular-progress {
    width: 60px;
    height: 60px;
    box-shadow: none;
}

.circular-progress svg {
    position: relative;
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
}

/* Make mobile SVG larger */
.preloader.mobile .circular-progress svg {
    width: 60px;
    height: 60px;
}

.circular-progress svg circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 5;
    stroke: #fff;
    stroke-linecap: round;
}

/* Make mobile circle stroke wider */
.preloader.mobile .circular-progress svg circle {
    stroke-width: 6;
}

.circular-progress svg circle:nth-child(2) {
    stroke: #0066cc;
    stroke-dasharray: 141.372;
    stroke-dashoffset: 141.372;
    animation: circularProgress 1s linear infinite; /* 1 second animation */
}

/* Update mobile circle animation */
.preloader.mobile .circular-progress svg circle:nth-child(2) {
    stroke-dasharray: 169.646; /* Updated for larger circle */
    stroke-dashoffset: 169.646;
}

@keyframes circularProgress {
    0% {
        stroke-dashoffset: 141.372;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Update mobile animation */
@keyframes circularProgress {
    0% {
        stroke-dashoffset: 169.646;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.remove {
    display: none !important;
}

.container {
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    /* Removed background image from general container class */
    min-height: 100vh; /* Added to ensure container fills available space */
}

/* Desktop-only background image */
@media (min-width: 571px) {
    .container {
        background-image: url('https://i.ibb.co/RGcNZ0LZ/bg1.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.css-sncgum {
    margin: 0 !important;
    margin-top: 3px !important; /* Added space before elements with this class */
}

.box {
    width: 420px !important;
    height: 624px;
    max-width: 100%;
    /* overflow-x: hidden; /* Prevent horizontal scrollbar */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Desktop footer styles */
.desktop-footer {
    display: flex;
    height: 270px;
    width: 100%;
    background-color: rgb(15, 23, 34);
    border-top: 0.125rem solid rgb(33, 39, 54);
    color: #fff;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.footer-left {
    width: 30%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-left img {
    max-width: 40%;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent link text from wrapping */
}

.footer-links a:hover {
    color: #39acff;
}

.footer-right {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
}

.footer-copyright {
    font-size: 16px;
    color: #fff;
    text-align: center;
}

/* Mobile-specific adjustments */
@media(max-width: 570px) {
    body {
        background: rgb(15, 23, 34);
    }

    /* Remove all top spacing in mobile */
    .site-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .content-wrapper {
        align-items: flex-start !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        justify-content: flex-start !important;
    }
    
    .container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .box {
        box-shadow: none;
        width: 100% !important; /* Changed from 90% to 100% */
        max-width: none; /* Removed max-width constraint */
        padding: 1.5rem 1rem;
        margin-top: 0 !important;
        margin-bottom: 20px;
    }
    
    /* Remove top margin from form elements */
    form {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .top_text {
        padding: 0 10px;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .top_text p:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .top_text h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Responsive preloader for mobile */
    .preloader-container {
        width: 90%;
        max-width: 400px;
    }
    
    .progress-container {
        width: 100%;
    }
    
    .preloader-icon {
        width: 120px;
        height: 36px;
    }
    
    /* Adjust form elements for mobile */
    .cont_btn {
        width: 100%;
    }
    
    .login_user {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Adjust button container */
    .or_text {
        margin: 15px 0;
    }
    
    /* Adjust social login buttons - MODIFIED SECTION */
    .add {
        width: 100%;
        justify-content: center;
        gap: 17px; /* Added 8px gap between icons */
    }
    
    .add button {
        margin: 0; /* Removed margin to use gap instead */
    }

    /* Hide desktop footer on mobile */
    .desktop-footer {
        display: none;
    }
    
    /* Mobile footer spacing adjustments */
    .mobile-footer-image {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .mobile-footer-links {
        gap: 20px;
    }
    
    .mobile-footer-link-group {
        margin-bottom: 10px;
    }
    
    .mobile-footer-copyright {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* Tablet adjustments - MODIFIED SECTION */
@media(min-width: 571px) and (max-width: 1200px) {
    /* Modified footer layout for tablets */
    .desktop-footer {
        flex-direction: column;
        height: auto;
        padding: 30px 0;
        align-items: center;
        justify-content: center;
    }
    
    .footer-left {
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-left img {
        max-width: 200px;
        margin: 20px 0; /* Space before and after the image */
    }
    
    .footer-links {
        justify-content: center;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 12px;
        padding: 0 5px;
    }
    
    .footer-right {
        width: 100%;
        padding: 10px 20px 20px;
        justify-content: center;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
        margin: 20px 0 0;
    }
}

/* Desktop adjustments with spacing for footer elements */
@media(min-width: 1201px) and (max-width: 1920px) {
    .footer-left img {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        gap: 20px;
    }
    
    .footer-link-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-copyright {
       margin-top: 213px;
        margin-bottom: 6px;
        margin-right: -453px;
    }
    
    .border_change_main {
        border: 1px dashed #fff;
        padding-top: 4px;
        padding-right: 0px;
        padding-bottom: 4px;
        padding-left: 4px;
    }

    /* Added space before the three logo section */
    .logo-section {
        margin-top: 25px !important;
    }
}

/* Inline styles that were in the HTML */
hr.css-mek630.efk7upz36 {
    margin-top: 16px; 
    margin-bottom: 20px;
}

p.logo-section img {
    border: 0;
}

div#input-container2 {
    display: none;
}

button#username_continue_btn {
    display: none;
}

button#login_email_btn {
    display: none;
}