<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="card">
<div class="form-section">
<h2 class="form-title">Create Your Account</h2>
<form id="signup-form" class="form">
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="Username" required>
</div>
<div class="form-group">
<label for="fullName">Full Name</label>
<input type="text" id="fullName" name="fullName" placeholder="Full Name" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Email" required>
</div>
<div class="form-group">
<label for="avatar">Profile Image</label>
<input type="file" id="avatar" name="avatar" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Password" required>
</div>
<button type="submit" class="submit-btn">Sign Up</button>
</form>
<p class="login-text">
Already have an account? <a href="/login">Log in</a>
</p>
</div>
<div class="image-section">
<img src="https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Signup Illustration">
</div>
</div>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
background: linear-gradient(to right, #f9fafb, #e5e7eb);
display: flex;
justify-content: center;
flex-direction:column;
align-items: center;
min-height: 100vh;
}
.container {
justify-content: center;
flex-direction:column;
width: 100%;
max-width: 1000px;
display: flex;
flex-direction:row;
flex-wrap: wrap;
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.card{
display:flex;
justify-content: center;
}
.form-section {
flex: 1 1 50%;
padding: 40px;
}
.form-title {
font-size: 24px;
font-weight: 600;
color: #2d3748;
display:flex;
justify-content: center;
flex-direction:column;
text-align: center;
margin-bottom: 20px;
}
.form {
display: flex;
flex-direction: column;
gap: 15px;
}
.form-group label {
font-size: 14px;
font-weight: 500;
color: #4a5568;
margin-bottom: 5px;
}
.form-group input {
width: 100%;
padding: 10px 15px;
border: 1px solid #cbd5e0;
border-radius: 8px;
font-size: 14px;
color: #2d3748;
background-color: #f7fafc;
outline: none;
transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus {
border-color: #a0aec0;
box-shadow: 0 0 0 2px #e2e8f0;
}
.submit-btn {
background: #2d3748;
color: #ffffff;
padding: 10px 15px;
font-size: 16px;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s;
}
.submit-btn:hover {
background: #1a202c;
}
.login-text {
font-size: 14px;
color: #718096;
text-align: center;
margin-top: 20px;
}
.login-text a {
color: #2d3748;
text-decoration: none;
}
.login-text a:hover {
text-decoration: underline;
}
.image-section {
flex: 1 1 50%;
display: none;
overflow: hidden;
}
.image-section img {
width: 100%;
height: 100%;
object-fit: cover;
}
@media (min-width: 768px) {
.image-section {
display: block;
}
}