/* Instructor Registration CSS */
:root {
    --primary-color: #3498db;    /* Professional blue */
    --secondary-color: #3b82f6;  /* Lighter blue */
    --background-light: #f8fafc; /* Light gray background */
    --text-dark: #1e293b;        /* Dark gray text */
    --text-light: #64748b;       /* Medium gray */
    --error-color: #dc2626;      /* Red for errors */
    --success-color: #16a34a;    /* Green for success */
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--background-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    margin: 0;
}

.register-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 800px; /* Wider form for better layout */
    margin: 2rem auto;
}

h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.error-message {
    background: #fee2e2;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #fecaca;
}

form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

input, button {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder {
    color: #94a3b8;
}

input[type="file"] {
    padding: 0.5rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    text-align: center;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    display: none;
}

button {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
    grid-column: span 2;
    margin-top: 1rem;
    width: 95%;
    justify-self: center;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    form {
        grid-template-columns: 1fr;
    }

    button {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    input, button {
        padding: 0.75rem;
    }
}
/* Add box-sizing reset */
*, *::before, *::after {
    box-sizing: border-box;
}

.register-container {
    /* existing styles */
    overflow: hidden; /* Prevent content overflow */
}

form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start; /* Align items at the top */
}

/* Make all inputs span full width of their grid cell */
input {
    width: 100%;
    min-width: 0; /* Prevent grid blowout */
}

/* Specific styling for full-width elements */
input[type="file"],
button {
    grid-column: 1 / -1; /* Span across all columns */
}

/* Responsive Fixes */
@media (max-width: 768px) {
    form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Reset full-width elements for mobile */
    input[type="file"],
    button {
        grid-column: 1;
    }
}

/* Add this to handle long content */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group {
    display: flex;
    justify-content: center; /* Center horizontally */
}
