/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Wrapper for layout */
.wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    height: 100vh; /* Full viewport height */
    width: 100%;  /* Full viewport width */
    background-image: url("../images/magicWorld.png"); /* Single background */
    background-repeat: no-repeat;
    background-size: cover; /* Ensure the background covers the entire area */
    background-position: center; /* Center the background */
}

/* Left Section */
.background-section {
    flex: 1; /* Take up 50% of the screen */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 60px; /* Add padding for spacing */
    min-width: 320px; /* Minimum width for smaller screens */
}

.text-content {
    max-width: 660px;
    text-align: left;
    transform: translate(70px, 135px);
}

/* Heading and description styles */
.text-content h5 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.text-content span {
    color: #0056b3;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 4rem;
    font-weight: 900;
}

.text-content p {
    font-size: 1.5rem; /* Reduced size for better responsiveness */
    color: #555;
    margin-top: 10px;
    line-height: 1.6; /* Better line spacing for readability */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Right Section: Login Card */
.login-section {
    flex: 1; /* Take up 50% of the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 320px; /* Minimum width for smaller screens */
}

/* Login Card Styling */
.login-card {
    width: 90%; /* Allow scaling based on screen size */
    max-width: 400px; /* Maximum width for larger screens */
    padding: 60px 30px 32px;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    color: #333;
}

.login-card img {
    width: 120px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px;
    margin-bottom: 20px;
}

.login-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px;
}

.login-card h3 {
    color: #555;
    margin: 0 0 40px;
    font-weight: 500;
    font-size: 1rem;
}

/* Form Controls */
.login-form {
    display: grid;
    gap: 20px;
    width: 100%;
}

.control {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    outline: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 16px;
}

.control::placeholder {
    color: #999;
}

.control:focus {
    border: 2px solid #666;
}

button.control {
    background: #333;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background 0.4s;
}

button.control:hover {
    background: #444;
}

.app-links{
display: flex;
justify-content: center;
}

#lang {
    padding: 15px 8px;
    background-color: #0056b3;
    width: 60px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    border-radius: 2px;
    position: absolute;
    left: 20px;
    bottom: 20px;
  }
/* Responsive Design */

/* For Tablets */
@media (max-width: 1024px) {
    .text-content h5 {
        font-size: 2.5rem;
    }

    .text-content span {
        font-size: 3.5rem;
    }

    .text-content p {
        font-size: 1.2rem;
    }

    .login-card {
        padding: 40px 20px 24px;
    }

}

/* For Mobile Devices */
@media (max-width: 960px) {
    .wrapper {
        flex-direction: column; /* Stack the sections vertically */
        height: 100vh; /* Allow the wrapper to expand */
        background-image: url('../images/login-background.png');
        background-repeat: no-repeat;
        background-size: cover; /* Ensure the background covers the entire area */
        background-position: center; /* Center the background */
    }

    .background-section {
        display: none;
        justify-content: center; /* Center-align the content */
        text-align: center; /* Center-align the text */
        padding: 20px; /* Add padding for spacing */
        transform: none; /* Remove translate */
    }

    .text-content {
        
        transform: none; /* Remove translation for better alignment */
    }

    .text-content h5 {
        font-size: 2rem;
    }

    .text-content span {
        font-size: 2.5rem;
    }

    .text-content p {
        font-size: 1rem;
    }

    .login-card {
        padding: 30px 20px;
        width: 90%; /* Adjust for smaller screens */
        max-width: 350px;
    }

}
