/* Basic Reset & Font */
body {
    margin: 0;
    font-family: 'Inter', sans-serif; /* Modern font */
    background-color: #f4f7f6; /* Light background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.register-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures rounded corners apply to children */
    display: flex;
    flex-direction: column; /* Default to column for smaller screens */
    max-width: 900px; /* Max width for the whole container */
    width: 95%; /* Responsive width */
}

/* Step 1: Choose Type */
.selection-cards {
    padding: 40px;
    text-align: center;
}

.section-heading {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.sub-heading {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between cards */
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.card {
    background-color: #fcfcfc;
    border: 2px solid #e0e6e9;
    border-radius: 10px;
    padding: 30px;
    width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    border-color: #2980b9; /* Highlight color */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.card-image {
    width: 150px; /* Size of the illustrations */
    height: auto;
    margin-bottom: 20px;
}

.card h3 {
    color: #34495e;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.card p {
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Step 2: Themed Form */
.form-step {
    display: none; /* Hidden by default */
    flex-direction: row; /* Two columns on larger screens */
    min-height: 500px; /* Ensure sufficient height for the form and image */
}

.illustration-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1; /* Light background for illustration side */
    padding: 20px;
}

.side-illustration {
    max-width: 100%;
    max-height: 100%; /* Ensure image scales within its container */
    object-fit: contain;
}

.form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center form content */
}

.registration-form {
    width: 100%;
    max-width: 400px; /* Max width for the form itself */
    margin: 0 auto; /* Center the form within its section */
}

#form-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-description {
    font-size: 1em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #3498db; /* Primary button color */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #2980b9; /* Darker on hover */
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .register-container {
        flex-direction: column;
        width: 100%;
        min-height: 100vh; /* Full height on small screens */
        border-radius: 0;
        box-shadow: none;
    }

    .form-step {
        flex-direction: column; /* Stack form and illustration vertically */
    }

    .illustration-section {
        min-height: 200px; /* Give illustration some height */
        padding: 30px 20px;
    }

    .side-illustration {
        max-width: 80%; /* Smaller on mobile */
    }

    .selection-cards, .form-section {
        padding: 30px 20px;
    }

    .section-heading {
        font-size: 1.8em;
    }

    .sub-heading {
        font-size: 1em;
    }

    .cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        width: 90%; /* Wider cards on small screens */
        max-width: 300px;
        padding: 25px;
    }

    #form-title {
        font-size: 1.8em;
    }
}
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
    color: #7f8c8d;
}

.login-link p {
    margin: 0;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}