body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Home button styling - fixed for all screen sizes */
.home-link {
    position: fixed;
    top: 20px;
    left: 20px;
    text-decoration: none;
    font-size: 1rem;
    color: #0a0000;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 100; /* Ensure it stays on top */
}

.home-link:hover {
    background-color: #800000;
    color: #fff;
}

/* Desktop styles */
.signup-form {
    flex: 1;
    padding: 50px;
    background-color: #ffffff;
    max-width: 500px;
}

.signup-form h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #000;
    font-size: 16px;
    background-color: transparent;
    margin-top: 5px;
    box-sizing: border-box;
}

.password-field {
    position: relative;
}

.password-field span {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
}

.btn {
    width: 100%;
    background-color: #8b0000;
    color: white;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    margin-top: 30px;
    cursor: pointer;
}

.btn:hover {
    background-color: #a30000;
}

.login-link {
    margin-top: 15px;
    text-align: center;
}

.login-link a {
    color: #0077cc;
    text-decoration: none;
}

.logo-side {
    flex: 1;
    background-color: #8b0000;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.logo-side img {
    width: 60%;
    max-width: 300px;
    margin-bottom: 20px;
}

.logo-side h3 {
    font-size: 1.5rem;
}

/* Mobile Responsiveness Adjustments */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .signup-form,
    .logo-side {
        flex: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .signup-form {
        order: 2;
        padding: 30px 20px;
    }

    .logo-side {
        order: 1;
        padding: 50px 20px;
        min-height: 40vh;
    }

    .signup-form h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .logo-side img {
        width: 50%;
        max-width: 200px;
        margin-bottom: 15px;
    }

    .logo-side h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    /* Home button adjustments for mobile */
    .home-link {
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 16px;
        padding: 10px 0;
    }

    .btn {
        margin-top: 20px;
        padding: 12px;
        font-size: 16px;
    }

    .login-link {
        margin-top: 10px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .signup-form {
        padding: 20px 15px;
    }

    .logo-side {
        padding: 30px 15px;
    }

    .logo-side img {
        width: 70%;
    }

    .home-link {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}