/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

/* Page Container */
.page-container {
    display: flex;
    width: 80%;
    max-width: 1200px;
    height: 90%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Left Side Image */
.image-container {
    width: 50%;
    background: #F44336;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 90%;
    height: auto;
    border-radius: 5px;
}

/* Right Side Form */
.form-container {
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-heading {
    text-align: center;
    font-size: 2.5em;
    color: #F44336;
    margin-bottom: 20px;
}

/* Login Toggle */
.login-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.login-toggle.hidden {
    display: none;
}

.toggle-label {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.toggle-label input {
    display: none;
}

.toggle-label span {
    color: #666;
    font-weight: bold;
}

.toggle-label input:checked + span {
    color: #F44336;
}

/* Form Box */
.form-box {
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: all 0.3s ease;
}

.form-box.hidden {
    display: none;
}

.form-box h2 {
    color: #F44336;
    margin-bottom: 20px;
}

/* Form Fields */
form input {
    width: 91%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

form input:focus {
    border-color: #F44336;
    outline: none;
}

.form-btn {
    width: 91%;
    padding: 10px;
    background: #dd1d1d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.form-btn:hover {
    background: #F44336;
}

/* Toggle Text */
.toggle-text {
    margin-top: 20px;
    font-size: 0.9em;
    color: #333;
}

.toggle-link {
    color: #4918ed;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .page-container {
        flex-direction: column;
        height: auto;
    }

    .image-container, .form-container {
        width: 100%;
    }

    .image-container {
        padding: 20px 0;
    }

    .form-container {
        padding: 20px;
    }
}