/* Basic Reset & Font */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    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;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    width: 95%;
}

/* 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;
    flex-wrap: wrap;
}

.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;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.card-image {
    width: 150px;
    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;
    flex-direction: row;
    min-height: 500px;
}

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

.side-illustration {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.registration-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#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;
    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;
    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;
    transform: translateY(-2px);
}

/* Social Login Styles */
.social-login {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
    position: relative;
    border-top: 1px solid #e0e6e9;
    border-bottom: 1px solid #e0e6e9;
}

.social-login::before {
    content: "or";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.social-login p {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.95em;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #e0e6e9;
    border-radius: 8px;
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    font-size: 0.9em;
    background-color: #ffffff;
    transition: all 0.3s ease;
    min-width: 100px;
    flex: 1;
    max-width: 120px;
}

.social-btn:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #2c3e50;
}

.social-btn img {
    width: 18px;
    height: 18px;
}

/* Specific social button styles */
.social-btn.google {
    border-color: #db4437;
}

.social-btn.google:hover {
    background-color: #fff5f5;
    border-color: #db4437;
}

.social-btn.microsoft {
    border-color: #0078d4;
}

.social-btn.microsoft:hover {
    background-color: #f0f8ff;
    border-color: #0078d4;
}

.social-btn.apple {
    border-color: #000000;
}

.social-btn.apple:hover {
    background-color: #f8f8f8;
    border-color: #000000;
}

/* Login Link */
.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;
}

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

    .form-step {
        flex-direction: column;
    }

    .illustration-section {
        min-height: 200px;
        padding: 30px 20px;
    }

    .side-illustration {
        max-width: 80%;
    }

    .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%;
        max-width: 300px;
        padding: 25px;
    }

    #form-title {
        font-size: 1.8em;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        max-width: 200px;
        width: 100%;
    }
}