/* Enhanced Registration Page Styles */
.main-content {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
    color: #006400;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.main-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #006400, #00a86b);
    border-radius: 2px;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: #fff;
}

.form-control:focus {
    border-color: #006400;
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 0, 0.15);
    outline: none;
}

.form-control[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(to right, #006400, #00a86b);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
}

.btn-primary:hover {
    background: linear-gradient(to right, #005000, #008f5b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.2);
}

#studentInfo {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.invalid-feedback, .valid-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.invalid-feedback {
    color: #dc3545;
}

.valid-feedback {
    color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Enhanced Loading Screen */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loader {
    width: 70px;
    height: 70px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #006400;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 100, 0, 0.2);
}

.loading-text {
    color: #ffffff;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .main-content h1 {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 0.875rem 1.5rem;
    }
}

/* Form Group Spacing */
.mb-3 {
    margin-bottom: 1.5rem;
}

/* Input Group for Student ID */
.student-id-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

#checkstudent_id {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(to right, #006400, #00a86b);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

#checkstudent_id:hover {
    background: linear-gradient(to right, #005000, #008f5b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.2);
}