body {
    background: black;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    font-size: clamp(16px, 2.5vw, 24px); /* Minimum 18px for body text */
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at bottom, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    z-index: -1;
}

.content-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.section {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease;
}

.section.active {
    transform: translateX(0);
}

.section.left {
    transform: translateX(-100%);
}

.section.right {
    transform: translateX(100%);
}

.form-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: clamp(24px, 6vw, 56px); /* Minimum 24px for headings */
    margin: 20px;
    text-align: center;
    
}

h2 {
    font-size: clamp(20px, 4vw, 40px); /* Minimum 20px for subheadings */
    margin: 20px;
}


label, input[type="text"], button {
    margin: 0.5em 0;
    font-size: 1.2em; /* Makes the text larger */
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5em;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    color: white;
    margin: 0.5em 0;
}

input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8em; /* More padding for touch */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    color: white;
    margin: 0.5em 0;
}

button {
    padding: 0.8em 1.6em; /* Larger buttons */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    margin: 0.5em 0;
    min-width: 150px; /* Prevents narrow buttons */
}

.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.2); /* Red-tinted glass effect */
    backdrop-filter: blur(5px);       /* Glassmorphism blur */
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;                   /* Ensures it appears on top */
    opacity: 0;                      /* Initially invisible */
    transition: opacity 0.5s ease;   /* Smooth fade effect */
    display: none;                   /* Hidden by default */
}

@media (max-width: 480px) {
    button, input[type="text"] {
        font-size: 1.4em; /* Makes text even larger on mobile */
    }
    button {
        padding: 1em 2em; /* Makes buttons bigger on mobile */
        min-width: 180px; /* Increases minimum width on mobile */
    }
    input[type="text"] {
        padding: 1em; /* Makes text fields bigger on mobile */
    }
}