/* --- Base Registration Form Styling (Desktop/General) --- */
.registration-container {
    max-width: 500px; /* Constrain width on desktop for readability */
    margin: 40px auto; /* Center the form block */
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    /* Assumes form fields are styled globally or with a default framework */
}

.registration-container h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

/* Ensures form inputs are full-width within the container */
.registration-container input,
.registration-container textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
}

.registration-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* CRITICAL: Make the submit button full width for easy tapping on mobile */
.registration-container .btn-primary {
    width: 100%; 
    padding: 12px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Adjust the "Already have an account?" link spacing */
.registration-container p.mt-3 {
    text-align: center;
    margin-top: 15px !important;
}


/* ---------------------------------------------------------------------- */
/* --- Responsive Adjustments (Max 768px: Tablets/iPads and smaller) --- */
/* ---------------------------------------------------------------------- */
@media (max-width: 768px) {
    .registration-container {
        max-width: 100%; /* Take full width on mobile/tablet */
        margin: 0; /* Remove side margins */
        padding: 20px 15px; /* Adjust padding for mobile screens */
        box-shadow: none; /* Remove shadow for a cleaner full-width look */
        border-radius: 0; /* Remove border-radius */
        min-height: 100vh; /* Make the form take up the full screen height */
    }

    .registration-container h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    /* Reduce font size for form content for compactness */
    .registration-container label,
    .registration-container input,
    .registration-container textarea,
    .registration-container p {
        font-size: 0.95em;
    }

    .registration-container .btn-primary {
        padding: 15px; /* Ensure a large enough touch target */
    }
}