/* signup.css */
/* This stylesheet will borrow styles from the login page to maintain consistency */

/* Reset some basic elements */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Full screen split layout */
.split-screen {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* The left pane with the image */
.left-pane {
    background-image: url('https://raw.githubusercontent.com/sefyudem/Sliding-Sign-In-Sign-Up-Form/955c6482aeeb2f0e77c1f3c66354da3bc4d7a72d/img/register.svg');
    background-size: cover;
    background-position: center;
    flex-basis: 50%;
    color: white;
    padding: 40px;
    position: relative;
}

/* Dark overlay for better text readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* The signup prompt on the left pane */
.create-account {
    z-index: 2;
    position: relative;
    text-align: left;
    max-width: 300px;
}

/* Right pane that contains the signup form */
.right-pane {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: white;
}

/* The actual sign-up section styling */
.sign-up {
    text-align: left;
    max-width: 300px;
    z-index: 2;
    position: relative;
}

/* Form and input field styles */
.signup-form .form-group {
    margin-bottom: 15px;
}

.signup-form .form-group input {
    height: 50px;
    font-size: 14px;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dddfe2;
    border-radius: 20px;
    box-sizing: border-box;
    
}

/* The sign up button styling */
.signup-button {
    width: 100%;
    background-color: #8a2be2;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 20px;
    font-weight: bold;
}

.signup-button:hover {
    color:#121212;
}


/* Footer styles for the link back to the login page */
.footer {
    text-align: center;
    margin-top: 20px;
}

.footer p {
    color: #8e8e8e;
}

.footer a {
    color: #1877f2;
    text-decoration: none;
}

/* Button to toggle dark mode */
.theme-toggle-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ffd700;
    border: none;
    border-radius: 30px;
    padding: 8px;
    cursor: pointer;
    z-index: 1000;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
}

body.dark-mode .right-pane {
    background-color: #222;
}

body.dark-mode .form-control {
    background-color: #333;
    color: #fff;
    border-color: #444;
}

.form-control {
    border-radius: 20px; /* Match the login page inputs */
    padding: 20px; /* Match the login page inputs */
    font-size: 14px; /* Match the login page inputs */
}

body.dark-mode .form-control::placeholder {
    color: #b0b0b0;
}

body.dark-mode .sign-up h2 {
    color: white; /* Set the color of the Create Account heading to white in dark mode */
}

/* Responsiveness */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }

    .left-pane, .right-pane {
        flex-basis: 100%;
    }
}
