/* register-user.css - Styling for the User Registration Form */

/* Reset and Base Styles - Consistent with userDashboard.css and login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Using Poppins for consistency */
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Consistent background gradient */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* To center the form vertically */
}

/* User Registration Form Styling - Adapted from #loginForm */
#registerUserForm {
    max-width: 450px; /* Consistent width with login form */
    width: 90%; /* Responsive width */
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem; /* Consistent padding */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Spacing between form elements */
}

#registerUserForm h2 {
    text-align: center;
    font-size: 2rem; /* Consistent heading size */
    margin-bottom: 1.5rem; /* Space below heading */
    color: #667eea; /* Primary color for headings */
    font-weight: 600;
}

/* Styling for the "Already have an account?" text */
#registerUserForm .login-prompt {
    text-align: center;
    font-size: 1rem; /* Smaller font size for secondary heading */
    color: #333; /* Darker color for readability inside the form */
    margin-top: 1rem; /* Space above the prompt */
    margin-bottom: 0.5rem; /* Space below the prompt */
    font-weight: 500;
}

#registerUserForm input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
    width: 100%; /* Full width inputs */
}

#registerUserForm input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#registerUserForm button[type="submit"] {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%); /* Consistent button style */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 100%; /* Full width button */
}

#registerUserForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Styling for the Login link */
#registerUserForm .login-link {
    text-align: center;
    margin-top: 0.5rem; /* Space above the link */
}

#registerUserForm .login-link a {
    color: #667eea; /* Primary color for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
}

#registerUserForm .login-link a:hover {
    color: #764ba2; /* Darker hover color */
    text-decoration: underline;
}

/* Responsive Design - Consistent with login.css */
@media (max-width: 768px) {
    #registerUserForm {
        padding: 2rem 1.5rem; /* Adjust padding for smaller screens */
        margin: 1rem auto; /* Center the form with margin */
    }

    #registerUserForm h2 {
        font-size: 1.75rem;
    }

    #registerUserForm input,
    #registerUserForm button[type="submit"] {
        padding: 0.85rem; /* Slightly smaller padding for inputs/buttons */
        font-size: 0.95rem;
    }

    #registerUserForm .login-prompt {
        font-size: 0.9rem;
        margin-top: 0.75rem;
        margin-bottom: 0.4rem;
    }

    #registerUserForm .login-link a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #registerUserForm {
        padding: 1.5rem 1rem; /* Further adjust padding for very small screens */
        margin: 0.5rem auto;
    }

    #registerUserForm h2 {
        font-size: 1.5rem;
    }

    #registerUserForm input,
    #registerUserForm button[type="submit"] {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    #registerUserForm .login-prompt {
        font-size: 0.85rem;
        margin-top: 0.6rem;
        margin-bottom: 0.3rem;
    }

    #registerUserForm .login-link a {
        font-size: 0.85rem;
    }
}
