/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    overflow: hidden;
}

/* Container for the Forms */
.container {
    background: #fff;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Toggle Buttons */
.form-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 0.5rem;
}

.form-toggle button {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.form-toggle button.active {
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.form-toggle button:hover {
    background: #007bff;
    color: #fff;
}

/* Form Styling */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form.hidden {
    display: none;
}

.form h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #333;
}

.form .subtext {
    margin-bottom: 1.5rem;
    color: #777;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.input-group .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #777;
}

.form button {
    padding: 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.form button:active {
    transform: translateY(0);
}

.switch-text {
    font-size: 0.9rem;
    color: #555;
}

.switch-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-text a:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
    }

    .form-toggle button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .input-group input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    }

    .input-group .icon {
        font-size: 1rem;
    }
}