/* ==========================================================================
   1. VARIABLES & GLOBAL RESETS (Adopted from New Main Style)
   ========================================================================== */
:root {
    /* Brand Colors (Primary Purple) */
    --p-dark: #6B2C91;
    --p-main: #9D4EDD;
    --p-light: #C77DFF;

    /* Secondary Accent (Green for CTA success) */
    --accent-green: #06D6A0;
    --accent-green-dark: #05A079;
    
    /* Neutrals */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #F9FAFB;
    --text-muted: #9CA3AF;

    --bg-light: #FFFFFF;
    --bg-alt: #F3F4F6; /* Light gray background for inputs */
    --bg-panel-dark: #1F1F24; /* Darker background for the right panel */
    --border-color: #E5E7EB;
    
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets & Body --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* --- Main Two-Column Container --- */
.signup-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==========================================================================
   2. FORM PANEL (LEFT)
   ========================================================================== */
.form-panel {
    width: 55%;
    background-color: var(--bg-light);
    padding: 2rem 5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    /* NEW: Gradient Logo */
    background: linear-gradient(135deg, var(--p-main) 0%, var(--p-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-prompt {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-prompt a {
    color: var(--p-main);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.login-prompt a:hover { color: var(--p-dark); }

.form-content {
    max-width: 450px;
    margin: auto 0;
    width: 100%;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    /* NEW: Gradient Header */
    background: linear-gradient(to right, var(--text-primary) 30%, var(--p-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* --- Input Fields --- */
.input-group { margin-bottom: 1.5rem; }

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background-color: var(--bg-alt);
    border-radius: var(--radius);
}

.input-group input:focus {
    outline: none;
    border-color: var(--p-main);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
    background-color: var(--bg-light);
}

/* Password Toggle */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 2.8rem; }

.toggle-password {
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.toggle-password:hover { color: var(--p-main); }

/* Forgot Password */
.form-extra { text-align: right; margin-bottom: 1.5rem; }
.forgot-password-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--p-main);
    text-decoration: none;
    transition: var(--transition);
}
.forgot-password-link:hover { color: var(--p-dark); text-decoration: underline; }

/* --- CTA Button (Using Green Accent) --- */
.cta-btn {
    background-color: var(--accent-green);
    color: white;
    padding: 0.875rem;
    border-radius: 12px; /* Slightly larger radius */
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3); /* Green Glow */
}

.cta-btn:hover {
    background-color: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4);
}

/* Error Message Styling */
.error-message {
    color: #D32F2F;
    background-color: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}


/* ==========================================================================
   3. INFO PANEL (RIGHT)
   ========================================================================== */
.info-panel {
    width: 45%;
    background: linear-gradient(145deg, var(--p-dark) 0%, #240046 100%); /* Deep Purple Gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* Subtle Animated Background Elements */
.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    animation: rotate-light 15s linear infinite;
}

@keyframes rotate-light {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-content {
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.info-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.info-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Feature Card (Glassmorphism-like effect) */
.feature-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
    transform: perspective(1000px) rotateY(0deg) scale(1);
    transition: transform 0.5s;
}
.feature-card:hover { transform: perspective(1000px) rotateY(3deg) scale(1.02); }


.feature-card img { 
    width: 100%; 
    display: block; 
    object-fit: cover;
    height: 200px; /* Give the image a fixed, good height */
}

.card-caption {
    padding: 1.5rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.1);
}
.card-caption strong { 
    color: var(--text-light); 
    font-size: 1.2rem; 
    font-family: 'Poppins', sans-serif;
    display: block;
}
.lancer-role { 
    display: block; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin: 0.25rem 0; 
}
.verified-badge { 
    display: inline-block; 
    background-color: var(--accent-green); 
    color: white; 
    padding: 0.3rem 0.8rem; 
    border-radius: 999px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    margin-top: 0.75rem; 
}

/* ==========================================================================
   4. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .form-panel { 
        width: 100%; 
        padding: 2rem; 
        border-right: none; 
        min-height: 100vh;
    }
    .info-panel { display: none; } 
    .form-content { margin-top: 0; margin-bottom: auto; }
}

@media (max-width: 768px) {
    .form-panel { padding: 1.5rem; }
    .form-header { padding-bottom: 1.5rem; }
    h1 { font-size: 2rem; }
    .subtitle { margin-bottom: 2rem; }
    .logo { font-size: 1.6rem; }
    .password-wrapper input { padding-right: 2.5rem; }
    .toggle-password { right: 0.8rem; bottom: 0.8rem; font-size: 0.9rem; }
}