:root {
    --primary: #0d6efd; /* Bootstrap Blue - Adjust if needed */
    --secondary: #6c757d;
    --accent: #f8f9fa;
    --highlight: #dc3545;
    --error: #dc3545;
    --background-color: #f8f9fa; /* Light grey background */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --border-color: #dee2e6;
    --border-radius: 0.5rem; /* Slightly larger radius for card */
    --input-focus-border: #86b7fe;
    --input-focus-shadow: rgba(13, 110, 253, 0.25);
    --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --info-bg-start: #0b5ed7; /* Darker blue for gradient */
    --info-bg-end: #3d8bfd;   /* Lighter blue for gradient */
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 20px;
    margin-bottom: 10px;
    border: 1px solid #2e5a51;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-btn {
    background: none;
    border: none;
    color: var(--highlight);
    font-size: 16px;
    cursor: pointer;
}

body,
html {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary); /* Use text color variable */
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--background-color); /* Use background variable */
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding: 2rem; /* Add padding around the container */
    box-sizing: border-box;
    align-items: center; /* Center the content vertically */
    justify-content: center; /* Center the content horizontally */
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px; /* Max width for the auth box */
    background-color: var(--primary); /* Blue background for the wrapper */
    border-radius: var(--border-radius); /* Rounded corners for the whole box */
    overflow: hidden; /* Clip content to rounded corners */
    box-shadow: var(--box-shadow);
}

.info-section {
    flex: 1 1 50%;
    /* Use a gradient similar to the image */
    background: linear-gradient(135deg, var(--info-bg-start), var(--info-bg-end));
    color: var(--text-light);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    position: relative; /* Needed for pseudo-elements */
    overflow: hidden; /* Keep shapes contained */
    /* Add subtle shapes if desired using ::before/::after or SVG */
}

/* Add decorative shapes */
.info-section::before,
.info-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    z-index: 0; /* Behind the content */
    pointer-events: none; /* Don't interfere with clicks */
}

.info-section::before {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
}

.info-section::after {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -180px;
    opacity: 0.8;
}

.info-content {
    max-width: 450px;
    position: relative; /* Ensure content is above pseudo-elements */
    z-index: 1;
}

.info-section h1 {
    font-size: 1.2rem; /* Smaller "WELCOME" */
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-section h2 { /* Use h2 for the main headline */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.info-section p {
    font-size: 1rem;
    margin-bottom: 0; /* Remove margin if feature list is removed */
    opacity: 0.9;
}

/* Remove or hide feature list if not part of the new design */
.feature-list {
   display: none;
}

.signup-section {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem; /* Padding inside the white area */
    background-color: #ffffff; /* White background for the form side */
}

.signup-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2.5rem; /* Padding inside the card */
    width: 100%;
    max-width: 400px;
    box-shadow: none; /* Remove shadow, wrapper has it */
}

.signup-card h2 {
    text-align: left; /* Align left like image */
    color: var(--text-primary);
    margin-bottom: 0.5rem; /* Space below title */
    font-weight: 700; /* Bold title */
    font-size: 1.8rem;
}

.signup-card .subtitle {
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem; /* Space below subtitle */
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary); /* Darker label */
    font-size: 0.875rem;
}

.google-btn,
.btn {
    width: 100%;
    padding: 0.8rem 1rem; /* Adjust padding */
    margin-bottom: 1rem;
    border: none;
    border-radius: var(--border-radius); /* Use variable */
    cursor: pointer;
    font-size: 1rem; /* Standardized font size */
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; /* Smoother transition */
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    background-color: #fff;
    color: #333; /* Darker text for better contrast */
    border: 1px solid var(--border-color); /* Use variable */
    margin-bottom: 1rem; /* Add margin back below Google button */
}

.google-btn:hover {
    background-color: #f8f9fa; /* Subtle hover */
    border-color: #cdd1d4;
}

/* Re-enable divider */
.divider {
   display: flex; /* Use flex again */
   text-align: center;
   margin: 1.5rem 0;
   color: var(--text-secondary);
   font-size: 0.875rem;
   align-items: center;
}

.divider::before,
.divider::after {
    content: "";
    flex-grow: 1;
    border-top: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 0.5em;
}

.divider::after {
    margin-left: 0.5em;
}

input[type="tel"],
input[type="password"],
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem; /* Match button padding */
    margin-bottom: 0.5rem; /* Reduced margin below input, error message handles spacing */
    border: 1px solid var(--border-color); /* Use variable */
    border-radius: var(--border-radius); /* Use variable */
    box-sizing: border-box;
    font-size: 1rem; /* Standardized font size */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--accent); /* Light background for inputs */
    color: var(--text-primary); /* Use variable */
}

/* Remove default browser autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

input[type="tel"]:focus,
input[type="password"]:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--input-focus-border); /* Use variable */
    box-shadow: 0 0 0 3px var(--input-focus-shadow); /* Use variable */
}

.error {
    color: var(--error); /* Use variable */
    font-size: 0.85rem; /* Slightly smaller error */
    margin-top: 0.25rem; /* Space above error message */
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
}

.btn {
    background-color: var(--primary);
    color: var(--text-light);
    font-weight: 600;
    margin-top: 1rem; /* Add space above button */
}

.btn:hover {
    background-color: #0b5ed7; /* Darker blue hover */
}

.terms {
    text-align: center;
    margin-top: 2rem; /* More space above terms */
    font-size: 0.875rem;
}

/* Remove .switch styles if not needed */
.switch {
    display: none;
}

/* --- Responsive Design --- */

@media (max-width: 992px) {
    .container {
        padding: 1rem; /* Reduce padding */
        align-items: flex-start; /* Align top on mobile */
    }
    .auth-wrapper {
        flex-direction: column;
        max-width: 500px; /* Limit width on mobile */
        margin: 2rem auto; /* Center vertically */
    }

    .info-section {
        padding: 2.5rem;
        text-align: center;
        align-items: center;
        min-height: auto;
    }

    .info-content {
        max-width: 100%;
    }

    .info-section h2 {
        font-size: 2rem;
    }

    .signup-section {
        padding: 2rem;
    }

    .signup-card {
        padding: 1.5rem;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0;
        background-color: #ffffff; /* Make whole background white */
    }
    .auth-wrapper {
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        max-width: none;
    }
    .info-section {
       display: none; /* Keep hidden on smallest screens */
    }

    .signup-section {
        padding: 2rem 1.5rem; /* Adjust padding */
        min-height: 100vh; /* Take full height */
        align-items: center; /* Center vertically */
    }

    .signup-card {
        padding: 1rem;
    }

    .signup-card h2 {
        font-size: 1.6rem;
        text-align: center;
    }
    .signup-card .subtitle {
        text-align: center;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .google-btn,
    .btn,
    input[type="tel"] {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .terms {
        margin-top: 1.5rem;
        font-size: 0.8rem;
    }

    .divider {
        margin: 1rem 0; /* Adjust divider margin */
    }
}